Skip to content

Commit

Permalink
Change 0x10 constant to LLKHF_INJECTED constant name in Windows oslay…
Browse files Browse the repository at this point in the history
…er keyboard handling
  • Loading branch information
user202729 committed Jul 17, 2023
1 parent d549350 commit 7353fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plover/oslayer/windows/keyboardcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def on_key(pressed, event):
if event.flags & LLKHF_EXTENDED:
return False

if event.flags & 0x10:
if event.flags & LLKHF_INJECTED:
# Ignore simulated events (e.g. from KeyboardEmulation).
return False
if event.vkCode in PASSTHROUGH_KEYS:
Expand Down

0 comments on commit 7353fc9

Please sign in to comment.