From 0aed20a50c3d97091443dbebbfdce2bb59833080 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Fri, 29 Jul 2016 10:38:22 +0000 Subject: [PATCH] [BROWSEUI] - CExplorerBand: TranslateAcceleratorIO should return S_FALSE when it doesn't process the message in order to let other components process it. CORE-11709 svn path=/trunk/; revision=72043 --- reactos/dll/win32/browseui/explorerband.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/browseui/explorerband.cpp b/reactos/dll/win32/browseui/explorerband.cpp index 4e6c3c4d66e..11ecc249e42 100644 --- a/reactos/dll/win32/browseui/explorerband.cpp +++ b/reactos/dll/win32/browseui/explorerband.cpp @@ -799,11 +799,15 @@ HRESULT STDMETHODCALLTYPE CExplorerBand::HasFocusIO() HRESULT STDMETHODCALLTYPE CExplorerBand::TranslateAcceleratorIO(LPMSG lpMsg) { - TranslateMessage(lpMsg); - DispatchMessage(lpMsg); - return S_OK; -} + if (lpMsg->hwnd == m_hWnd) + { + TranslateMessage(lpMsg); + DispatchMessage(lpMsg); + return S_OK; + } + return S_FALSE; +} // *** IPersist methods *** HRESULT STDMETHODCALLTYPE CExplorerBand::GetClassID(CLSID *pClassID)