diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 22:12:34 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 22:12:34 +0000 |
commit | 449f8d6c9a2ba105405a0ea0625300fec73eaadb (patch) | |
tree | 2fa3d3bb10425d32b9b50633d836774809353b44 /chrome/browser/gtk/standard_menus.h | |
parent | af0285648087cda5acfd903a99975a2560556b83 (diff) | |
download | chromium_src-449f8d6c9a2ba105405a0ea0625300fec73eaadb.zip chromium_src-449f8d6c9a2ba105405a0ea0625300fec73eaadb.tar.gz chromium_src-449f8d6c9a2ba105405a0ea0625300fec73eaadb.tar.bz2 |
Implement accelerators in the gtk port (try 2).
- 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/39278
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/standard_menus.h')
-rw-r--r-- | chrome/browser/gtk/standard_menus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/standard_menus.h b/chrome/browser/gtk/standard_menus.h index 89c6d10..90d289d 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. |