OSDN Git Service

Fix recursive commands not working on Windows 10
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Thu, 2 Nov 2017 09:45:45 +0000 (18:45 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sun, 1 Apr 2018 07:34:35 +0000 (16:34 +0900)
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

index 758dcfe..5dcff5f 100644 (file)
@@ -398,7 +398,7 @@ LRESULT CALLBACK CXkeymacsDll::KeyboardProc(int nCode, WPARAM wParam, LPARAM lPa
        BYTE nKey = nOrigKey;\r
 \r
        static BOOL bLocked = FALSE;\r
-       static const BYTE RECURSIVE_KEY = 0x07;\r
+       static const BYTE RECURSIVE_KEY = 14;\r
        static int (*fLastCommand)() = NULL;\r
        static BYTE nOneShotModifier[MAX_KEY] = {'\0'};\r
        static BOOL bCherryOneShotModifier = FALSE;\r