Index: chrome/browser/views/tab_contents/tab_contents_view_gtk.cc |
=================================================================== |
--- chrome/browser/views/tab_contents/tab_contents_view_gtk.cc (revision 34219) |
+++ chrome/browser/views/tab_contents/tab_contents_view_gtk.cc (working copy) |
@@ -314,37 +314,6 @@ |
reverse ? GTK_DIR_TAB_BACKWARD : GTK_DIR_TAB_FORWARD); |
} |
-bool TabContentsViewGtk::HandleKeyboardEvent( |
- const NativeWebKeyboardEvent& event) { |
- // The renderer returned a keyboard event it did not process. This may be |
- // a keyboard shortcut that we have to process. |
- if (event.type != WebInputEvent::RawKeyDown) |
- return false; |
- |
- views::FocusManager* focus_manager = |
- views::FocusManager::GetFocusManagerForNativeView(GetNativeView()); |
- // We may not have a focus_manager at this point (if the tab has been switched |
- // by the time this message returned). |
- if (!focus_manager) |
- return false; |
- |
- bool shift_pressed = (event.modifiers & WebInputEvent::ShiftKey) == |
- WebInputEvent::ShiftKey; |
- bool ctrl_pressed = (event.modifiers & WebInputEvent::ControlKey) == |
- WebInputEvent::ControlKey; |
- bool alt_pressed = (event.modifiers & WebInputEvent::AltKey) == |
- WebInputEvent::AltKey; |
- |
- return focus_manager->ProcessAccelerator( |
- views::Accelerator(static_cast<base::KeyboardCode>(event.windowsKeyCode), |
- shift_pressed, ctrl_pressed, alt_pressed)); |
- // DANGER: |this| could be deleted now! |
- |
- // Note that we do not handle Gtk mnemonics/accelerators or binding set here |
- // (as it is done in BrowserWindowGtk::HandleKeyboardEvent), as we override |
- // Gtk behavior completely. |
-} |
- |
void TabContentsViewGtk::ShowContextMenu(const ContextMenuParams& params) { |
// Allow delegates to handle the context menu operation first. |
if (tab_contents()->delegate()->HandleContextMenu(params)) |