[BROWSEUI]
[reactos.git] / 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)