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

Unified Diff: webkit/glue/editor_client_impl.cc

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/test/data/gtk_key_bindings_test_gtkrc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/editor_client_impl.cc
===================================================================
--- webkit/glue/editor_client_impl.cc (revision 25695)
+++ webkit/glue/editor_client_impl.cc (working copy)
@@ -636,7 +636,11 @@
ShowFormAutofillForNode(evt->target()->toNode());
}
- if (handleEditingKeyboardEvent(evt))
+ // Calls WebViewDelegate's HandleCurrentKeyboardEvent() first to give it a
+ // chance to handle the keyboard event. Bypass handleEditingKeyboardEvent(),
+ // if WebViewDelegate handles the event.
+ WebViewDelegate* d = web_view_->delegate();
+ if ((d && d->HandleCurrentKeyboardEvent()) || handleEditingKeyboardEvent(evt))
evt->setDefaultHandled();
}
« no previous file with comments | « chrome/test/data/gtk_key_bindings_test_gtkrc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698