From: H.G.Muller Date: Thu, 29 Jan 2015 10:12:19 +0000 (+0100) Subject: Use Ctl-E in ICS chat to end chat X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3cc857b122a0529be670b5615f7859c0cd7af947;p=xboard.git Use Ctl-E in ICS chat to end chat --- diff --git a/dialogs.c b/dialogs.c index 36f9abd..0377031 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1900,6 +1900,9 @@ IcsHist (int n, Option *opt, DialogClass dlg) if(opt != &chatOptions[CHAT_IN] && !(opt == &chatOptions[CHAT_PARTNER] && n == 33)) return 0; switch(n) { + case 5: + if(!hidden) ClearChat(); + break; case 8: if(!hidden) PaneSwitch(); break; diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 17cc7dc..1ce5442 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -502,6 +502,7 @@ TypeInProc (GtkWidget *widget, GdkEventKey *event, gpointer gdata) shiftState = event->state & GDK_SHIFT_MASK; controlState = event->state & GDK_CONTROL_MASK; switch(event->keyval) { + case 'e': return (controlState && IcsHist( 5, opt, dlg)); case 'h': return (controlState && IcsHist( 8, opt, dlg)); case 'n': return (controlState && IcsHist(14, opt, dlg)); case 'o': return (controlState && IcsHist(15, opt, dlg));