From 7353fc91010f0698a727c6f8c0acba6effdaaa63 Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Fri, 18 Jun 2021 09:45:49 +0700 Subject: [PATCH] Change 0x10 constant to LLKHF_INJECTED constant name in Windows oslayer keyboard handling --- plover/oslayer/windows/keyboardcontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: