From 5c2a9868ffe0a3ba45655c057a8a070d93dc57b7 Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Mon, 29 Apr 2024 01:13:32 +0100 Subject: [PATCH] Fix for keyToggle not releasing the key in some applications. https://github.com/octalmage/robotjs/issues/252 --- src/keypress.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/keypress.c b/src/keypress.c index 9ff85e6f..790af5c8 100644 --- a/src/keypress.c +++ b/src/keypress.c @@ -96,11 +96,6 @@ void win32KeyEvent(int key, MMKeyFlags flags) } } - /* Set the scan code for keyup */ - if ( flags & KEYEVENTF_KEYUP ) { - scan |= 0x80; - } - flags |= KEYEVENTF_SCANCODE; INPUT keyboardInput;