Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Catching keyevents
#17
(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
Reply


Messages In This Thread
Catching keyevents - by hsacrm - 2022-12-29, 13:39:15
RE: Catching keyevents - by wila - 2022-12-29, 14:07:06
RE: Catching keyevents - by hsacrm - 2022-12-29, 15:20:45
RE: Catching keyevents - by wila - 2022-12-29, 18:43:07
RE: Catching keyevents - by hsacrm - 2023-01-02, 08:21:44
RE: Catching keyevents - by wila - 2023-01-02, 11:50:42
RE: Catching keyevents - by wila - 2023-01-02, 13:18:59
RE: Catching keyevents - by hsacrm - 2023-01-02, 14:29:06
RE: Catching keyevents - by wila - 2023-01-02, 15:03:32
RE: Catching keyevents - by hsacrm - 2023-01-04, 14:34:38
RE: Catching keyevents - by wila - 2023-01-04, 14:50:29
RE: Catching keyevents - by hsacrm - 2023-01-04, 15:43:49
RE: Catching keyevents - by wila - 2023-01-04, 17:05:43
RE: Catching keyevents - by wila - 2023-01-04, 17:34:32
RE: Catching keyevents - by hsacrm - 2023-01-05, 11:00:10
RE: Catching keyevents - by wila - 2023-01-05, 11:39:41
RE: Catching keyevents - by hsacrm - 2023-01-05, 12:50:00
RE: Catching keyevents - by wila - 2023-01-05, 16:28:34
RE: Catching keyevents - by hsacrm - 2023-01-06, 07:39:15

Forum Jump:


Users browsing this thread: 1 Guest(s)