diff options
author | Florian Boor <florian.boor@kernelconcepts.de> | 2007-02-08 15:40:50 +0000 |
---|---|---|
committer | Florian Boor <florian.boor@kernelconcepts.de> | 2007-02-08 15:40:50 +0000 |
commit | 23c6875a205a79525d228125449327af52ff3d8c (patch) | |
tree | ca8e75726ff87cd6d63c8eb34d1c378fe342f980 /packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch | |
parent | ae48a7866dfc6befa8d334931bc851ce09d7b42c (diff) |
gtk+: Add some patches to improve focus control using keyboard for 2.6.10.
Diffstat (limited to 'packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch')
-rwxr-xr-x | packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch b/packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch new file mode 100755 index 0000000000..def741af5d --- /dev/null +++ b/packages/gtk+/gtk+-2.6.10/gtk.keynav.gtkentry.patch @@ -0,0 +1,16 @@ +--- gtk/gtkentry.c 2005-08-18 22:10:57.000000000 +0800 ++++ gtk/gtkentry.c 2006-05-29 14:42:55.980731414 +0800 +@@ -2386,6 +2386,13 @@ gtk_entry_move_cursor (GtkEntry *e + break; + case GTK_MOVEMENT_VISUAL_POSITIONS: + new_pos = gtk_entry_move_visually (entry, new_pos, count); ++ if (entry->current_pos == new_pos && !extend_selection) ++ { ++ if (!gtk_widget_keynav_failed (GTK_WIDGET(entry), count > 0 ? GTK_DIR_RIGHT : GTK_DIR_LEFT)) ++ { ++ gtk_widget_child_focus (gtk_widget_get_toplevel (GTK_WIDGET(entry)), count > 0 ? GTK_DIR_TAB_FORWARD : GTK_DIR_TAB_BACKWARD); ++ } ++ } + break; + case GTK_MOVEMENT_WORDS: + while (count > 0) |