Revisão | a7e8e77611a7fbed224c31d783aa1519deda1521 (tree) |
---|---|
Hora | 2018-04-01 16:34:35 |
Autor | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
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.
@@ -398,7 +398,7 @@ LRESULT CALLBACK CXkeymacsDll::KeyboardProc(int nCode, WPARAM wParam, LPARAM lPa | ||
398 | 398 | BYTE nKey = nOrigKey; |
399 | 399 | |
400 | 400 | static BOOL bLocked = FALSE; |
401 | - static const BYTE RECURSIVE_KEY = 0x07; | |
401 | + static const BYTE RECURSIVE_KEY = 14; | |
402 | 402 | static int (*fLastCommand)() = NULL; |
403 | 403 | static BYTE nOneShotModifier[MAX_KEY] = {'\0'}; |
404 | 404 | static BOOL bCherryOneShotModifier = FALSE; |