GNOME Bugzilla – Bug 2682
Keybindings in GtkCTree for non-us keyboards.
Last modified: 2011-02-04 16:09:10 UTC
Package: gtk+ Version: 1.2.6 Severity: wishlist Hi, Here is a patch which adds some keybindings to GtkCTree. Some keyboards have the + key without shift and the = key shifted. The default bindings in GtkCTree didn't handle that, so I have added some. With these changes + expands a node, whether it is shifted or not. Likewise, = toggles, shifted or not. Control + and control - expands and collapses recursively, like the keypad+ and - do. -- René Seindal (rene@seindal.dk) http://www.seindal.dk/rene/ ------------------------------------------------------------------------ *** gtkctree.c~ Wed Sep 15 04:08:48 1999 --- gtkctree.c Fri Sep 24 14:39:03 1999 *************** *** 474,479 **** --- 474,488 ---- "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_EXPAND); gtk_binding_entry_add_signal (binding_set, + '+', 0, + "change_focus_row_expansion", 1, + GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_EXPAND); + gtk_binding_entry_add_signal (binding_set, + '+', GDK_CONTROL_MASK, + "change_focus_row_expansion", 1, + GTK_TYPE_ENUM, + GTK_CTREE_EXPANSION_EXPAND_RECURSIVE); + gtk_binding_entry_add_signal (binding_set, GDK_KP_Add, 0, "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_EXPAND); *************** *** 487,492 **** --- 496,506 ---- "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_COLLAPSE); gtk_binding_entry_add_signal (binding_set, + '-', GDK_CONTROL_MASK, + "change_focus_row_expansion", 1, + GTK_TYPE_ENUM, + GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE); + gtk_binding_entry_add_signal (binding_set, GDK_KP_Subtract, 0, "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_COLLAPSE); *************** *** 500,505 **** --- 514,523 ---- "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_TOGGLE); gtk_binding_entry_add_signal (binding_set, + '=', GDK_SHIFT_MASK, + "change_focus_row_expansion", 1, + GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_TOGGLE); + gtk_binding_entry_add_signal (binding_set, GDK_KP_Multiply, 0, "change_focus_row_expansion", 1, GTK_TYPE_ENUM, GTK_CTREE_EXPANSION_TOGGLE); ------------------------------------------------------------------------ -- René Seindal (rene@seindal.dk) http://www.seindal.dk/rene/ ------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 14:46 ------- This bug was previously known as bug 2682 at http://bugs.gnome.org/ http://bugs.gnome.org/show_bug.cgi?id=2682 Originally filed under the gtk+ product and general component. The original reporter (rene@seindal.dk) of this bug does not have an account here. Reassigning to the exporter, debbugs-export@bugzilla.gnome.org. Reassigning to the default owner of the component, gtk-bugs@gtk.org.
Seems like it should maybe go in both stable and HEAD.
Applied. For 2.0, this really should be handled by better handling of modifiers in general. (See #50300)