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

Unified Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 159586: This CL fixes issue 11480: Support GTK keyboard themes (emacs keybindings).... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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/renderer_host/render_widget_host.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host.cc (版本 21941)
+++ chrome/browser/renderer_host/render_widget_host.cc (工作副本)
@@ -731,7 +731,10 @@
key_queue_.pop();
if (!processed) {
- UnhandledKeyboardEvent(front_item);
+ // Send the event back to the |view_| first, to give it a chance to
+ // handle it again.
+ if (!view_->UnhandledKeyboardEvent(front_item))
+ UnhandledKeyboardEvent(front_item);
// WARNING: This RenderWidgetHost can be deallocated at this point
// (i.e. in the case of Ctrl+W, where the call to

Powered by Google App Engine
This is Rietveld 408576698