Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 235039: Fix conflicts between accelerator keys and HTML DOM accesskeys.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/browser_window_gtk.cc
===================================================================
--- chrome/browser/gtk/browser_window_gtk.cc (revision 29767)
+++ chrome/browser/gtk/browser_window_gtk.cc (working copy)
@@ -593,7 +593,7 @@
}
}
-void BrowserWindowGtk::HandleKeyboardEvent(GdkEventKey* event) {
+bool BrowserWindowGtk::HandleKeyboardEvent(GdkEventKey* event) {
// Handles a key event in following sequence:
// 1. Our special key accelerators, such as ctrl-tab, etc.
// 2. Gtk mnemonics and accelerators.
@@ -603,8 +603,9 @@
// gtk_window_activate_key() takes care of it automatically.
if (!HandleCustomAccelerator(event->keyval, GdkModifierType(event->state),
browser_.get())) {
- gtk_window_activate_key(window_, event);
+ return gtk_window_activate_key(window_, event);
}
+ return true;
Nico 2009/10/24 02:31:10 This would be easier to understand if it went like
James Su 2009/10/24 10:53:48 Good point. I'll change it in an upcoming CL. On
}
gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,

Powered by Google App Engine
This is Rietveld 408576698