Skip to content

Commit

Permalink
docs say we should not process events with negative codes
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 19, 2023
1 parent 7368f02 commit 0aeece9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpra/platform/win32/gui.py
Expand Up @@ -1094,6 +1094,9 @@ class KBDLLHOOKSTRUCT(Structure):
}
def low_level_keyboard_handler(nCode, wParam, lParam):
log("WH_KEYBOARD_LL: %s", (nCode, wParam, lParam))
if nCode<0:
#docs say we should not process this event:
return CallNextHookEx(0, nCode, wParam, lParam)
try:
scan_code = lParam.contents.scan_code
vk_code = lParam.contents.vk_code
Expand Down

0 comments on commit 0aeece9

Please sign in to comment.