From 291cbfc369851b4efb515c44338c9d4aabe9c3e3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 Sep 2015 13:22:49 +0100 Subject: [PATCH] Fix GTK keyboard-shortcut focusing of CTRL_LISTBOX. I had put an entire piece of code into win_key_press's SHORTCUT_UCTRL handler to carefully handle all the different kinds of list box control and do something sensible with each one, and then I just went and used a generic SHORTCUT_FOCUS type shortcut instead of actually _calling_ all that carefully prepared code. Now selecting (say) the character-classes list box in the Selection panel using its Alt-e shortcut works; also, shortcut-selecting a popup menu such as the ones in the Bugs panel causes the menu to pop up, which I think is nicer than what previously happened. --- unix/gtkdlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 8a696ec1..a4dbb0e5 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -2473,7 +2473,7 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs, #endif shortcut_add(scs, label, ctrl->listbox.shortcut, - SHORTCUT_FOCUS, w); + SHORTCUT_UCTRL, uc); container = columns_new(4); if (ctrl->listbox.percentwidth == 100) {