]> Pileus Git - ~andy/gtk/commitdiff
Add C-n/C-p/C-f/C-b as alternatives to the arrow keys for menu navigation.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 Aug 2005 03:52:56 +0000 (03:52 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 30 Aug 2005 03:52:56 +0000 (03:52 +0000)
2005-08-29  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
to the arrow keys for menu navigation.  (#162825, Carl Worth)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkrc.key.emacs

index df8ac087077ef504bdc720e93e9092c3dcf06fc1..d7b10ec587f1c76934d6f895d79fbdc2c5c4aeb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
+       to the arrow keys for menu navigation.  (#162825, Carl Worth)
+
        * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
 
        * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
index df8ac087077ef504bdc720e93e9092c3dcf06fc1..d7b10ec587f1c76934d6f895d79fbdc2c5c4aeb8 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
+       to the arrow keys for menu navigation.  (#162825, Carl Worth)
+
        * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
 
        * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
index 57c1cb8c1ef7eded3ae6c1b63b66394be500023a..199006fecb8ef484840e58d7d6265278bc912f35 100644 (file)
@@ -95,7 +95,19 @@ binding "gtk-emacs-tree-view"
   bind "<ctrl>b" { "move-cursor" (logical-positions, -1) }
 }
 
+#
+# Bindings for menus
+#
+binding "gtk-emacs-menu"
+{
+  bind "<ctrl>n" { "move-current" (next) }
+  bind "<ctrl>p" { "move-current" (prev) }
+  bind "<ctrl>f" { "move-current" (child) }
+  bind "<ctrl>b" { "move-current" (parent) }
+}
+
 class "GtkEntry" binding "gtk-emacs-text-entry"
 class "GtkTextView" binding "gtk-emacs-text-entry"
 class "GtkTextView" binding "gtk-emacs-text-view"
 class "GtkTreeView" binding "gtk-emacs-tree-view"
+class "GtkMenuShell" binding "gtk-emacs-menu"