Index: chrome/browser/renderer_host/render_view_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/render_view_host.cc (revision 34219) |
+++ chrome/browser/renderer_host/render_view_host.cc (working copy) |
@@ -1477,20 +1477,17 @@ |
UserMetrics::RecordComputedAction(action.c_str(), process()->profile()); |
} |
-bool RenderViewHost::ShouldSendToRenderer(const NativeWebKeyboardEvent& event) { |
+bool RenderViewHost::PreHandleKeyboardEvent( |
+ const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
- if (!view) |
- return true; |
- return !view->IsReservedAccelerator(event); |
+ return view && view->PreHandleKeyboardEvent(event, is_keyboard_shortcut); |
} |
-bool RenderViewHost::UnhandledKeyboardEvent( |
+void RenderViewHost::UnhandledKeyboardEvent( |
const NativeWebKeyboardEvent& event) { |
RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
- if (view) { |
- return view->HandleKeyboardEvent(event); |
- } |
- return false; |
+ if (view) |
+ view->HandleKeyboardEvent(event); |
} |
void RenderViewHost::OnUserGesture() { |