[PowerRename] Fix AltGr input (#14927)

This commit is contained in:
Stefan Markovic
2021-12-13 13:47:45 +01:00
committed by GitHub
parent 02de31b7c0
commit dfba79313f

View File

@@ -121,10 +121,7 @@ bool DesktopWindow::NavigateFocus(MSG* msg)
else else
{ {
const bool islandIsFocused = GetFocusedIsland() != nullptr; const bool islandIsFocused = GetFocusedIsland() != nullptr;
byte keyboardState[256] = {}; if (islandIsFocused)
WINRT_VERIFY(::GetKeyboardState(keyboardState));
const bool isMenuModifier = keyboardState[VK_MENU] & 0x80;
if (islandIsFocused && !isMenuModifier)
{ {
return false; return false;
} }