GNOME Bugzilla – Bug 428842
Ctrl+Left Arrow (numpad) moves right, not left
Last modified: 2007-05-23 15:26:54 UTC
Please describe the problem: Using Ctrl+Left arrow should jump to the previous word (left). The separate left arrow key does so correctly, but the left arrow key on the numpad (shared with '4') jumps forward (to the right). This is caused by an error in the gtk/gtktextview.c key bindings; see below for details. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Yes Other information: SOLUTION: Correct the keybindings in gtk/gtktextview.c, ca. line 851: add_move_binding (binding_set, GDK_Right, GDK_CONTROL_MASK, GTK_MOVEMENT_WORDS, 1); add_move_binding (binding_set, GDK_KP_Right, GDK_CONTROL_MASK, GTK_MOVEMENT_WORDS, 1); add_move_binding (binding_set, GDK_Left, GDK_CONTROL_MASK, GTK_MOVEMENT_WORDS, -1); add_move_binding (binding_set, GDK_KP_Left, GDK_CONTROL_MASK, GTK_MOVEMENT_WORDS, 1); <<--- last parameter should be -1 The last parameter on the previous source line should be -1, not 1.
*** This bug has been marked as a duplicate of 356255 ***