]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix GTK keyboard-shortcut focusing of CTRL_LISTBOX.
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 12:22:49 +0000 (13:22 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 12:22:49 +0000 (13:22 +0100)
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

index 8a696ec1646d753bc61c5992c29d85dad2b20316..a4dbb0e56f51ddc4b1f0c58f1faa2914044a5231 100644 (file)
@@ -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) {