From a7e8e77611a7fbed224c31d783aa1519deda1521 Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Thu, 2 Nov 2017 18:45:45 +0900 Subject: [PATCH] Fix recursive commands not working on Windows 10 On Windows 10, key press events of vKey 7 are not delivered to Windows. This interferes with mechanics of recursive commands, and chokes successive all commands. Using vKey 14 instead of 7 solves this problem. --- xkeymacsdll/xkeymacsdll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkeymacsdll/xkeymacsdll.cpp b/xkeymacsdll/xkeymacsdll.cpp index 758dcfe..5dcff5f 100644 --- a/xkeymacsdll/xkeymacsdll.cpp +++ b/xkeymacsdll/xkeymacsdll.cpp @@ -398,7 +398,7 @@ LRESULT CALLBACK CXkeymacsDll::KeyboardProc(int nCode, WPARAM wParam, LPARAM lPa BYTE nKey = nOrigKey; static BOOL bLocked = FALSE; - static const BYTE RECURSIVE_KEY = 0x07; + static const BYTE RECURSIVE_KEY = 14; static int (*fLastCommand)() = NULL; static BYTE nOneShotModifier[MAX_KEY] = {'\0'}; static BOOL bCherryOneShotModifier = FALSE; -- 2.11.0