Commit bc2fc85e authored by estade@chromium.org's avatar estade@chromium.org

GTK: Don't let the page widget(s) handle key events that webkit didn't handle.

BUG=21165

Review URL: http://codereview.chromium.org/201047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25695 0039d316-1c4b-4281-b951-d872f2087c98
parent e8c7f632
...@@ -583,17 +583,13 @@ void BrowserWindowGtk::HandleKeyboardEvent(GdkEventKey* event) { ...@@ -583,17 +583,13 @@ void BrowserWindowGtk::HandleKeyboardEvent(GdkEventKey* event) {
// Handles a key event in following sequence: // Handles a key event in following sequence:
// 1. Our special key accelerators, such as ctrl-tab, etc. // 1. Our special key accelerators, such as ctrl-tab, etc.
// 2. Gtk mnemonics and accelerators. // 2. Gtk mnemonics and accelerators.
// 3. Gtk binding set.
// This sequence matches the default key press handler of GtkWindow. // This sequence matches the default key press handler of GtkWindow.
// //
// It's not necessary to care about the keyboard layout issue, as // It's not necessary to care about the keyboard layout, as
// gtk_window_activate_key() and gtk_bindings_activate_event() take care of it // gtk_window_activate_key() takes care of it automatically.
// automatically.
if (!HandleCustomAccelerator(event->keyval, GdkModifierType(event->state), if (!HandleCustomAccelerator(event->keyval, GdkModifierType(event->state),
browser_.get())) { browser_.get())) {
if (!gtk_window_activate_key(window_, event)) { gtk_window_activate_key(window_, event);
gtk_bindings_activate_event(GTK_OBJECT(window_), event);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment