Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ namespace KeyboardEventHandlers
{
isAltRightKeyInvoked = true;
}
else if (data->lParam->vkCode == VK_RMENU && (data->wParam == WM_KEYUP || data->wParam == WM_SYSKEYUP))
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new reset branch for isAltRightKeyInvoked can be skipped on VK_RMENU key-up events: the preceding if (vkCode == VK_RMENU && ii.GetVirtualKeyState(VK_LCONTROL)) also runs on key-up, and if VK_LCONTROL is still reported as down at that moment (common with AltGr), it will set the flag back to true and prevent the reset. To ensure the flag is reliably cleared on release, handle the key-up case first (or gate the "set" branch to key-down only).

Copilot uses AI. Check for mistakes.
{
isAltRightKeyInvoked = false;
}

// If the shortcut has been pressed down
if (!it->second.isShortcutInvoked && it->first.CheckModifiersKeyboardState(ii))
Expand Down
Loading