From 4c0e251251c085cbbf05e283d6c0af98e638ecba Mon Sep 17 00:00:00 2001 From: samartzidis Date: Thu, 22 Oct 2020 07:12:32 +0100 Subject: [PATCH] Disabled Fn + LShift + T workaround. --- README.md | 3 +++ WinAppleKey/A1644.c | 14 +++++++------- WinAppleKey/resource.rc | Bin 5406 -> 5406 bytes 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 92dcb7f..e2401a4 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,9 @@ Unfortunately I can't. This is due to Microsoft enforced restrictions. In order See paragraph **Multimedia Keys** above. +#### 3. When running in the default fn-ctrl swap mode, the ctrl-lshift-t combination commonly used to reopen a closed browser tab in Chrome does not work. + +This is an issue of the Apple keyboard hardware rather than the driver. You can use the ctrl-rshift-t combination instead. ### Donate diff --git a/WinAppleKey/A1644.c b/WinAppleKey/A1644.c index e31db26..4f34d6b 100644 --- a/WinAppleKey/A1644.c +++ b/WinAppleKey/A1644.c @@ -14,14 +14,14 @@ void ProcessA1644Buffer(BYTE* buf, ULONG size) BYTE* pSpecialKey = &buf[8]; // Workaround for Fn + LShift + T (which causes roll over key error) - if (g_dwSwapFnCtrl && (*pKey1 == HidKeyErrOvf && *pKey2 == HidKeyErrOvf && *pKey3 == HidKeyErrOvf && *pKey4 == HidKeyErrOvf && *pKey5 == HidKeyErrOvf && *pKey6 == HidKeyErrOvf)) - { - RtlZeroMemory(buf, size); - *pModifier = (HidLShiftMask | HidLCtrlMask); // Set LShift + LCtrl modifier - *pKey1 = HidKeyT; + //if (g_dwSwapFnCtrl && (*pKey1 == HidKeyErrOvf && *pKey2 == HidKeyErrOvf && *pKey3 == HidKeyErrOvf && *pKey4 == HidKeyErrOvf && *pKey5 == HidKeyErrOvf && *pKey6 == HidKeyErrOvf)) + //{ + // RtlZeroMemory(buf, size); + // *pModifier = (HidLShiftMask | HidLCtrlMask); // Set LShift + LCtrl modifier + // *pKey1 = HidKeyT; - return; - } + // return; + //} // SwapFnCtrl mode if (g_dwSwapFnCtrl) diff --git a/WinAppleKey/resource.rc b/WinAppleKey/resource.rc index 033f781c76716e33ce768e088b882f6bd02612ea..91e3eb774e62de7aca2aa5a6681e489843ef6da3 100644 GIT binary patch delta 46 zcmbQIHBW0p05_xM