diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 03:42:55 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 03:42:55 +0000 |
commit | 334a105b240c34841c864e8dd50974d90e0105b1 (patch) | |
tree | ed3d36542e3bb7bf1719e0b7268e72ae14698cdb /chrome/browser/views/tab_contents | |
parent | de23fff1310d85866e800103b50fb04851b6d1bc (diff) | |
download | chromium_src-334a105b240c34841c864e8dd50974d90e0105b1.zip chromium_src-334a105b240c34841c864e8dd50974d90e0105b1.tar.gz chromium_src-334a105b240c34841c864e8dd50974d90e0105b1.tar.bz2 |
Allow TabContentsDelegates to process unhandled keyboard messages coming back from the renderer. This is required
for ExternalTabContainer to be able to pass unhandled keyboard accelerator messages back to the external host.
This worked before as the focus manager would hand off these messages to keystroke listeners like the ExternalTabContainer.
However with the ExternalTabContainer no longer using the focus manager this does not work anymore.
Removed the keystroke listener code from the focus manager as the ExternalTabContainer was the only consumer and it does not use it anymore.
This fixes bug http://b/issue?id=1975749
Bug=1975749
Review URL: http://codereview.chromium.org/149520
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_contents')
-rw-r--r-- | chrome/browser/views/tab_contents/tab_contents_view_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/tab_contents/tab_contents_view_win.cc b/chrome/browser/views/tab_contents/tab_contents_view_win.cc index 7b6aabb..543cff4 100644 --- a/chrome/browser/views/tab_contents/tab_contents_view_win.cc +++ b/chrome/browser/views/tab_contents/tab_contents_view_win.cc @@ -421,6 +421,11 @@ void TabContentsViewWin::HandleKeyboardEvent( } } + if (tab_contents()->delegate() && + tab_contents()->delegate()->HandleKeyboardEvent(event)) { + return; + } + // Any unhandled keyboard/character messages should be defproced. // This allows stuff like Alt+F4, etc to work correctly. DefWindowProc(event.os_event.hwnd, |