From f9a3457160eff1dd7f7fde47a267d677ff41b4ec Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Thu, 29 Jan 2015 10:56:45 +0100 Subject: [PATCH] Use Ctrl-H in ICS Chat to close chat pane This used to be done by , but that now focuses board instead. --- dialogs.c | 3 +++ gtk/xoptions.c | 1 + 2 files changed, 4 insertions(+), 0 deletions(-) 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; -- 1.7.0.4