From 6681ce0dd63b2790ca0c1c0cb4a03666989321c5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 30 Aug 2005 03:52:56 +0000 Subject: [PATCH] Add C-n/C-p/C-f/C-b as alternatives to the arrow keys for menu navigation. 2005-08-29 Matthias Clasen * 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 | 3 +++ ChangeLog.pre-2-10 | 3 +++ gtk/gtkrc.key.emacs | 12 ++++++++++++ 3 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index df8ac0870..d7b10ec58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-08-29 Matthias Clasen + * 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. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index df8ac0870..d7b10ec58 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-08-29 Matthias Clasen + * 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. diff --git a/gtk/gtkrc.key.emacs b/gtk/gtkrc.key.emacs index 57c1cb8c1..199006fec 100644 --- a/gtk/gtkrc.key.emacs +++ b/gtk/gtkrc.key.emacs @@ -95,7 +95,19 @@ binding "gtk-emacs-tree-view" bind "b" { "move-cursor" (logical-positions, -1) } } +# +# Bindings for menus +# +binding "gtk-emacs-menu" +{ + bind "n" { "move-current" (next) } + bind "p" { "move-current" (prev) } + bind "f" { "move-current" (child) } + bind "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" -- 2.43.2