summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 03:49:22 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 03:49:22 +0000
commitecce175d8414948b0a38f301f32b17a33993de16 (patch)
treea6f10bc2ca90df2deb2511ce8785b095f14e9fc1 /chrome/browser/external_tab_container.cc
parent45b24dab00029be158ee1b98b29eb9a10b01c21b (diff)
downloadchromium_src-ecce175d8414948b0a38f301f32b17a33993de16.zip
chromium_src-ecce175d8414948b0a38f301f32b17a33993de16.tar.gz
chromium_src-ecce175d8414948b0a38f301f32b17a33993de16.tar.bz2
When the unhandled accelerator messages come back from the external host, we should only DefProc the message.
The current implementaton calls TranslateMessage and DispatchMessage which causes the whole cycle to repeat. This is the chrome side of the fix for http://b/viewIssue?id=1981454 Bug=1981454 Review URL: http://codereview.chromium.org/155562 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index acc6e9d..40dff0f 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -116,12 +116,7 @@ bool ExternalTabContainer::Init(Profile* profile,
}
void ExternalTabContainer::ProcessUnhandledAccelerator(const MSG& msg) {
- // We just received an accelerator key that we had sent to external host
- // back. Since the external host was not interested in handling this, we
- // need to dispatch this message as if we had just peeked this out. (we
- // also need to call TranslateMessage to generate a WM_CHAR if needed).
- TranslateMessage(&msg);
- DispatchMessage(&msg);
+ DefWindowProc(msg.hwnd, msg.message, msg.wParam, msg.lParam);
}
void ExternalTabContainer::FocusThroughTabTraversal(bool reverse) {