summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 19:51:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 19:51:56 +0000
commitd56bcd21c5842c72ec0a8cd14c910e1dd4ed7048 (patch)
treeeb64e16a90396c8be28d8ddece03c7f8bf0e4c5e /chrome/browser/renderer_host
parent79106726b69152f8ef4bb1a711e3c1d9c7e033f6 (diff)
downloadchromium_src-d56bcd21c5842c72ec0a8cd14c910e1dd4ed7048.zip
chromium_src-d56bcd21c5842c72ec0a8cd14c910e1dd4ed7048.tar.gz
chromium_src-d56bcd21c5842c72ec0a8cd14c910e1dd4ed7048.tar.bz2
Linux accelerators cleanup:
- Give renderer a chance to handle accelerators before browser does. - Handle browser accelerators that aren't attached to any particular UI element in BrowserWindowGtk rather than in BrowserToolbarGtk - Use Browser::ExecuteCommand() to handle accelerator activation - Switch a random void* to gfx::NativeWindow - Enable three browser commands on linux : Focus Location, Focus Search, Open file This fully enables ctrl-l, ctrl-k, and ctrl-o. This fixes copy-pasta in the omnibox. This fixes the problem Dean described with <http://www.quirksmode.org/js/keys.html>. bug=8659 Review URL: http://codereview.chromium.org/42190 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_gtk.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
index c0f8b27..166db75 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -78,7 +78,10 @@ class RenderWidgetHostViewGtkWidget {
RenderWidgetHostViewGtk* host_view) {
NativeWebKeyboardEvent wke(event);
host_view->GetRenderWidgetHost()->ForwardKeyboardEvent(wke);
- return FALSE;
+ // We return TRUE because we did handle the event. If it turns out webkit
+ // can't handle the event, we'll deal with in
+ // RenderView::UnhandledKeyboardEvent().
+ return TRUE;
}
static gboolean FocusIn(GtkWidget* widget, GdkEventFocus* focus,