diff --git a/plover/oslayer/windows/keyboardcontrol.py b/plover/oslayer/windows/keyboardcontrol.py index 33478dbeb..8dddf8998 100644 --- a/plover/oslayer/windows/keyboardcontrol.py +++ b/plover/oslayer/windows/keyboardcontrol.py @@ -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: