(2023-01-05, 11:39:41)wila Wrote: ..
The code was tested on key-up, not key down. Even on key-up the shift and control modifiers still showed as "down".
..
Are you sure you meant keyup? Maybe the browser returns them in a reversed order, because here are my results by pressing only the ctrl-key:
On down:
keyevent 0
virtualkey 17
KeyEventLParam 1900545
KeyEventKind 0
IsExtendedKey 0
IsKeyReleased 0
IsMenuKeyDown 0
RepeatCount 1
ScanCode 29
WasKeyDown 0
IsShiftKeyDown 0
IsControlKeyDown 1
On release:
keyevent 1
virtualkey 17
KeyEventLParam -1071841279
KeyEventKind 1
IsExtendedKey 0
IsKeyReleased 1
IsMenuKeyDown 0
RepeatCount 1
ScanCode 29
WasKeyDown 1
IsShiftKeyDown 0
IsControlKeyDown 0