| 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();
|
| }
|
|
|
|
|