diff options
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index c141659a..63596a4 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -130,6 +130,9 @@ const struct AcceleratorMapping { int GetCommandId(guint accel_key, GdkModifierType modifier) { // Bug 9806: If capslock is on, we will get a capital letter as accel_key. accel_key = gdk_keyval_to_lower(accel_key); + // Filter modifier to only include accelerator modifiers. + modifier = static_cast<GdkModifierType>( + modifier & gtk_accelerator_get_default_mod_mask()); for (size_t i = 0; i < arraysize(kAcceleratorMap); ++i) { if (kAcceleratorMap[i].keyval == accel_key && kAcceleratorMap[i].modifier_type == modifier) |