[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
{
const bool islandIsFocused = GetFocusedIsland() != nullptr;
byte keyboardState[256] = {};
WINRT_VERIFY(::GetKeyboardState(keyboardState));
const bool isMenuModifier = keyboardState[VK_MENU] & 0x80;
if (islandIsFocused && !isMenuModifier)
if (islandIsFocused)
{
return false;
}