From 89fe216da236a9930cfab994a67e3110575e6e87 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Wed, 25 Feb 2009 22:16:51 +0000 Subject: Implement accelerators in the gtk port. - Adds accelerators to all the menu items that had them on windows. - Adds accelerators to back (Alt+left), forward (Alt+right), reload (Ctr+R) and focus the URL box (Ctr+L). Review URL: http://codereview.chromium.org/28105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10387 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/standard_menus.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/gtk/standard_menus.h') diff --git a/chrome/browser/gtk/standard_menus.h b/chrome/browser/gtk/standard_menus.h index a26643e..11a2860 100644 --- a/chrome/browser/gtk/standard_menus.h +++ b/chrome/browser/gtk/standard_menus.h @@ -33,6 +33,12 @@ struct MenuCreateMaterial { // If non-NULL, a pointer to the struct we're supposed to use MenuCreateMaterial* submenu; + + // A gdk keysym that is used to activate this item from outside the menu. + unsigned int accel_key; + + // GDK modifiers for the menu items (i.e., shift, ctrl, etc). + unsigned int accel_modifiers; }; // Returns the menu construction data structure for the page menu. -- cgit v1.1