diff --git "a/dll/win32/shell32/CDefView.cpp" "b/dll/win32/shell32/CDefView.cpp" index 9f12fd09549..a5eec7403d5 100644 --- "a/dll/win32/shell32/CDefView.cpp" +++ "b/dll/win32/shell32/CDefView.cpp" @@ -1522,10 +1522,10 @@ HRESULT CDefView::InvokeContextMenuCommand(CComPtr &pCM, UINT uCom cmi.lpVerb = MAKEINTRESOURCEA(uCommand); cmi.hwnd = m_hWnd; - if (GetKeyState(VK_SHIFT) & 0x8000) + if (GetAsyncKeyState(VK_SHIFT) & 0x8000) cmi.fMask |= CMIC_MASK_SHIFT_DOWN; - if (GetKeyState(VK_CONTROL) & 0x8000) + if (GetAsyncKeyState(VK_CONTROL) & 0x8000) cmi.fMask |= CMIC_MASK_CONTROL_DOWN; if (pt)