diff --git a/dll/win32/browseui/shellbrowser.cpp b/dll/win32/browseui/shellbrowser.cpp index b12fc20e82d..9efa93b0e09 100644 --- a/dll/win32/browseui/shellbrowser.cpp +++ b/dll/win32/browseui/shellbrowser.cpp @@ -2057,6 +2057,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::Exec(const GUID *pguidCmdGroup, DWORD n V_VT(pvaOut) = VT_INT_PTR; V_INTREF(pvaOut) = reinterpret_cast( LoadMenu(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDM_CABINET_MAINMENU))); + LoadAcceleratorsW(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCEW(IDR_ACCELERATORS)); return S_OK; case 0x38: // indicate if this cabinet was opened as a browser @@ -2155,7 +2156,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::ContextSensitiveHelp(BOOL fEnterMode) HRESULT STDMETHODCALLTYPE CShellBrowser::InsertMenusSB(HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths) { HMENU mainMenu = LoadMenu(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDM_CABINET_MAINMENU)); - + LoadAcceleratorsW(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCEW(IDR_ACCELERATORS)); Shell_MergeMenus(hmenuShared, mainMenu, 0, 0, FCIDM_BROWSERLAST, MM_SUBMENUSHAVEIDS); int GCCU(itemCount3) = GetMenuItemCount(hmenuShared); @@ -2183,6 +2184,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::SetMenuSB(HMENU hmenuShared, HOLEMENU h if (!hmenuShared) { hmenuShared = LoadMenu(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDM_CABINET_MAINMENU)); + LoadAcceleratorsW(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCEW(IDR_ACCELERATORS)); } // FIXME: Figure out the proper way to do this. HMENU hMenuFavs = GetSubMenu(hmenuShared, 3);