summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 21:23:23 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 21:23:23 +0000
commitd1402b27dcac716aa511f05ef68da31a5c235b63 (patch)
tree372e0381e05ef674c2cf46dd4b70a60fe5514e53
parent819faeb0cf19a12f586aef3780d8b80ff1cab72f (diff)
downloadchromium_src-d1402b27dcac716aa511f05ef68da31a5c235b63.zip
chromium_src-d1402b27dcac716aa511f05ef68da31a5c235b63.tar.gz
chromium_src-d1402b27dcac716aa511f05ef68da31a5c235b63.tar.bz2
Makes control-alt-b show the bookmark manager on linux and windows
(already works on mac). BUG=44797 TEST=make sure control-alt-b shows the bookmark manager. Review URL: http://codereview.chromium.org/2867027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50892 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/chrome_dll.rc1
-rw-r--r--chrome/browser/gtk/accelerators_gtk.cc2
-rw-r--r--chrome/browser/views/accelerator_table_gtk.cc1
3 files changed, 4 insertions, 0 deletions
diff --git a/chrome/app/chrome_dll.rc b/chrome/app/chrome_dll.rc
index ab241c6..7e78d7b 100644
--- a/chrome/app/chrome_dll.rc
+++ b/chrome/app/chrome_dll.rc
@@ -103,6 +103,7 @@ BEGIN
"J", IDC_SHOW_DOWNLOADS, VIRTKEY, CONTROL
"H", IDC_SHOW_HISTORY, VIRTKEY, CONTROL
"F", IDC_SHOW_APP_MENU, VIRTKEY, ALT
+ "B", IDC_SHOW_BOOKMARK_MANAGER, VIRTKEY, CONTROL, ALT
"E", IDC_SHOW_PAGE_MENU, VIRTKEY, ALT
VK_ESCAPE, IDC_STOP, VIRTKEY
VK_ESCAPE, IDC_TASK_MANAGER, VIRTKEY, SHIFT
diff --git a/chrome/browser/gtk/accelerators_gtk.cc b/chrome/browser/gtk/accelerators_gtk.cc
index c93d8f0..7233a6f 100644
--- a/chrome/browser/gtk/accelerators_gtk.cc
+++ b/chrome/browser/gtk/accelerators_gtk.cc
@@ -153,6 +153,8 @@ const struct AcceleratorMapping {
{ GDK_p, IDC_PRINT, GDK_CONTROL_MASK },
{ GDK_b, IDC_SHOW_BOOKMARK_BAR,
GdkModifierType(GDK_CONTROL_MASK | GDK_SHIFT_MASK) },
+ { GDK_b, IDC_SHOW_BOOKMARK_MANAGER,
+ GdkModifierType(GDK_CONTROL_MASK | GDK_MOD1_MASK) },
{ GDK_F11, IDC_FULLSCREEN, GdkModifierType(0) },
{ GDK_Delete, IDC_CLEAR_BROWSING_DATA,
GdkModifierType(GDK_CONTROL_MASK | GDK_SHIFT_MASK) },
diff --git a/chrome/browser/views/accelerator_table_gtk.cc b/chrome/browser/views/accelerator_table_gtk.cc
index dfa5744..a33f4d8 100644
--- a/chrome/browser/views/accelerator_table_gtk.cc
+++ b/chrome/browser/views/accelerator_table_gtk.cc
@@ -133,6 +133,7 @@ const AcceleratorMapping kAcceleratorMap[] = {
{ base::VKEY_DELETE, false, true, true, IDC_TASK_MANAGER },
{ base::VKEY_OEM_COMMA, false, true, false, IDC_SYSTEM_OPTIONS },
{ base::VKEY_B, true, true, false, IDC_SHOW_BOOKMARK_BAR },
+ { base::VKEY_B, false, true, true, IDC_SHOW_BOOKMARK_MANAGER },
#if !defined(OS_CHROMEOS)
{ base::VKEY_F1, false, false, false, IDC_HELP_PAGE },
#endif