summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 21:02:44 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 21:02:44 +0000
commit7a99970fadb988cb50e8de96bb4159ab308c007f (patch)
tree5a0c5f8eb008b4b02a3db5293f4a088dce9d9a39 /views
parentd57d023ab457be4883aab8654bbf345ec55bc545 (diff)
downloadchromium_src-7a99970fadb988cb50e8de96bb4159ab308c007f.zip
chromium_src-7a99970fadb988cb50e8de96bb4159ab308c007f.tar.gz
chromium_src-7a99970fadb988cb50e8de96bb4159ab308c007f.tar.bz2
Revert 55232 - Dispatch key event to bindings processing.
This properly activates the default widget on a GtkWindow. BUG=chromium-os:4005 TEST=Default button of hosted native dialogs in ChromeOS should work. Review URL: http://codereview.chromium.org/3087011 TBR=xiyuan@chromium.org Review URL: http://codereview.chromium.org/3038053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/widget_gtk.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index 1f7afb2..42aac38 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -1182,10 +1182,6 @@ gboolean WidgetGtk::OnKeyEvent(GtkWidget* widget, GdkEventKey* event) {
if (!handled)
handled = HandleKeyboardEvent(event);
- // Dispatch the key event for bindings processing.
- if (!handled && GTK_IS_WINDOW(widget))
- handled = gtk_bindings_activate_event(GTK_OBJECT(widget), event);
-
// Always return true for toplevel window to prevents GtkWindow's default key
// event handler.
return GTK_IS_WINDOW(widget) ? true : handled;