From fa2bef0dae215c49e0b2152cf28765bcc28cb1e7 Mon Sep 17 00:00:00 2001 From: Reiss Cashmore Date: Tue, 23 Nov 2021 08:39:13 +0000 Subject: [PATCH] Remove scan code block --- src/win32/keypress.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/win32/keypress.c b/src/win32/keypress.c index 04ed0f8..b4a2ca4 100644 --- a/src/win32/keypress.c +++ b/src/win32/keypress.c @@ -53,12 +53,6 @@ void win32KeyEvent(int key, MMKeyFlags flags) } } - /* Set the scan code for keyup */ - if (flags & KEYEVENTF_KEYUP) - { - scan |= 0x80; - } - INPUT keyboardInput; keyboardInput.type = INPUT_KEYBOARD; keyboardInput.ki.wScan = (WORD)scan;