Index: chrome/browser/gtk/browser_window_gtk.cc |
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc |
index b1f3f87c4eca5f657e3af9381b80154264080040..cd7c805bc20eee446aff02c97e8414ffdc8adf79 100644 |
--- a/chrome/browser/gtk/browser_window_gtk.cc |
+++ b/chrome/browser/gtk/browser_window_gtk.cc |
@@ -111,6 +111,8 @@ const struct AcceleratorMapping { |
}; |
int GetCommandFromKeyval(guint accel_key) { |
+ // Bug 9806: If capslock is on, we will get a capital letter as accel_key. |
+ accel_key = gdk_keyval_to_lower(accel_key); |
for (size_t i = 0; i < arraysize(kAcceleratorMap); ++i) { |
if (kAcceleratorMap[i].keyval == accel_key) |
return kAcceleratorMap[i].command_id; |