[BROWSEUI]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 29 Jul 2016 10:38:22 +0000 (10:38 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 29 Jul 2016 10:38:22 +0000 (10:38 +0000)
- 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

index 4e6c3c4..11ecc24 100644 (file)
@@ -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)