summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 23:09:05 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 23:09:05 +0000
commit912858891442cfaf5617e239d753562deb526871 (patch)
tree4a9f307f871342365b12236966a750a6962f5fe4 /chrome/browser/gtk
parent98514f26dd2386c2811a5a568d993e8d75d6c33d (diff)
downloadchromium_src-912858891442cfaf5617e239d753562deb526871.zip
chromium_src-912858891442cfaf5617e239d753562deb526871.tar.gz
chromium_src-912858891442cfaf5617e239d753562deb526871.tar.bz2
Linux: add Alt-n keys for switching tabs.
The UI decision was to have both Alt-n and Ctrl-n switch tabs. Ctrl-n to match Windows Chrome and Alt-n to match Firefox on Linux. Pages which try to grab either sets of keys will succeed. BUG=13395 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index bcf6438..5d79502 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -143,6 +143,7 @@ const struct AcceleratorMapping {
{ GDK_w, IDC_CLOSE_TAB, GDK_CONTROL_MASK },
{ GDK_t, IDC_RESTORE_TAB,
GdkModifierType(GDK_CONTROL_MASK | GDK_SHIFT_MASK) },
+
{ GDK_1, IDC_SELECT_TAB_0, GDK_CONTROL_MASK },
{ GDK_2, IDC_SELECT_TAB_1, GDK_CONTROL_MASK },
{ GDK_3, IDC_SELECT_TAB_2, GDK_CONTROL_MASK },
@@ -152,6 +153,17 @@ const struct AcceleratorMapping {
{ GDK_7, IDC_SELECT_TAB_6, GDK_CONTROL_MASK },
{ GDK_8, IDC_SELECT_TAB_7, GDK_CONTROL_MASK },
{ GDK_9, IDC_SELECT_LAST_TAB, GDK_CONTROL_MASK },
+
+ { GDK_1, IDC_SELECT_TAB_0, GDK_MOD1_MASK },
+ { GDK_2, IDC_SELECT_TAB_1, GDK_MOD1_MASK },
+ { GDK_3, IDC_SELECT_TAB_2, GDK_MOD1_MASK },
+ { GDK_4, IDC_SELECT_TAB_3, GDK_MOD1_MASK },
+ { GDK_5, IDC_SELECT_TAB_4, GDK_MOD1_MASK },
+ { GDK_6, IDC_SELECT_TAB_5, GDK_MOD1_MASK },
+ { GDK_7, IDC_SELECT_TAB_6, GDK_MOD1_MASK },
+ { GDK_8, IDC_SELECT_TAB_7, GDK_MOD1_MASK },
+ { GDK_9, IDC_SELECT_LAST_TAB, GDK_MOD1_MASK },
+
{ GDK_F4, IDC_CLOSE_TAB, GDK_CONTROL_MASK },
{ GDK_F4, IDC_CLOSE_WINDOW, GDK_MOD1_MASK },