From: H.G.Muller Date: Thu, 29 Jan 2015 09:56:45 +0000 (+0100) Subject: Use Ctrl-H in ICS Chat to close chat pane X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f9a3457160eff1dd7f7fde47a267d677ff41b4ec;p=xboard.git Use Ctrl-H in ICS Chat to close chat pane This used to be done by , but that now focuses board instead. --- diff --git a/dialogs.c b/dialogs.c index f07dcf7..36f9abd 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 8: + if(!hidden) PaneSwitch(); + break; case 33: // if(1) BoardToTop(); else if(hidden) BoardToTop(); diff --git a/gtk/xoptions.c b/gtk/xoptions.c index ccc7588..17cc7dc 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 'h': return (controlState && IcsHist( 8, opt, dlg)); case 'n': return (controlState && IcsHist(14, opt, dlg)); case 'o': return (controlState && IcsHist(15, opt, dlg)); case GDK_Tab: IcsHist(10, opt, dlg); break;