Skip to content

Commit

Permalink
Win32 input: ignore CAPS_LOCK and NUM_LOCK.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Sep 24, 2023
1 parent a0c369d commit ed8b7dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2991,6 +2991,8 @@ static int win32_key_event(XINPUT_RECORD *xip)
!xip->ir.Event.KeyEvent.bKeyDown ||
((xip->ir.Event.KeyEvent.dwControlKeyState & (RIGHT_ALT_PRESSED|LEFT_CTRL_PRESSED)) == (RIGHT_ALT_PRESSED|LEFT_CTRL_PRESSED) && xip->ir.Event.KeyEvent.uChar.UnicodeChar == 0) ||
(xip->ir.Event.KeyEvent.wVirtualScanCode == 0 && xip->ir.Event.KeyEvent.uChar.UnicodeChar == 0) ||
xip->ir.Event.KeyEvent.wVirtualScanCode == PCK_CAPS_LOCK ||
xip->ir.Event.KeyEvent.wVirtualScanCode == PCK_NUM_LOCK ||
(xip->ir.Event.KeyEvent.wVirtualKeyCode == VK_MENU && xip->ir.Event.KeyEvent.uChar.UnicodeChar == 0) ||
xip->ir.Event.KeyEvent.wVirtualKeyCode == VK_KANJI ||
xip->ir.Event.KeyEvent.wVirtualKeyCode == VK_SHIFT ||
Expand Down

0 comments on commit ed8b7dc

Please sign in to comment.