1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Permit the config box treeview to be keyboard-selected.

I'd failed to set the widget field in its shortcut structure, leading
to an annoying GTK warning log message and no useful UI action when
Alt-G was pressed in the config box.
This commit is contained in:
Simon Tatham 2015-09-26 13:12:25 +01:00
parent 9a3b743260
commit 46b7cb6edb

View File

@ -2885,7 +2885,7 @@ void shortcut_add(struct Shortcuts *scs, GtkWidget *labelw,
scs->sc[chr].action = action;
if (action == SHORTCUT_FOCUS) {
if (action == SHORTCUT_FOCUS || action == SHORTCUT_TREE) {
scs->sc[chr].uc = NULL;
scs->sc[chr].widget = (GtkWidget *)ptr;
} else {