Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index ff746c8928b56b24aad2291d4b3668f07e5ae3c3..c00e5f817f24d2471d715e1061ee207c6934483e 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -1352,6 +1352,9 @@ bool BrowserView::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
} |
#endif // defined(OS_CHROMEOS) |
+ if (frame_->PreHandleKeyboardEvent(event)) |
+ return true; |
+ |
chrome::BrowserCommandController* controller = browser_->command_controller(); |
// Here we need to retrieve the command id (if any) associated to the |
@@ -1389,6 +1392,9 @@ bool BrowserView::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
} |
void BrowserView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
+ if (frame_->HandleKeyboardEvent(event)) |
+ return; |
+ |
unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, |
GetFocusManager()); |
} |