From ba750ca94e667a5c96f22410b52856b2d98efa39 Mon Sep 17 00:00:00 2001 From: samartzidis Date: Thu, 22 Oct 2020 08:18:10 +0100 Subject: [PATCH] Bug fix with remapped "del" not repeating --- WinAppleKey/A1644.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/WinAppleKey/A1644.c b/WinAppleKey/A1644.c index 4f34d6b..d94ecb5 100644 --- a/WinAppleKey/A1644.c +++ b/WinAppleKey/A1644.c @@ -13,16 +13,6 @@ void ProcessA1644Buffer(BYTE* buf, ULONG size) BYTE* pKey6 = &buf[7]; 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; - - // return; - //} - // SwapFnCtrl mode if (g_dwSwapFnCtrl) { @@ -53,6 +43,8 @@ void ProcessA1644Buffer(BYTE* buf, ULONG size) if (*pSpecialKey & 0x1) *pKey1 = HidDel; // Set Del key + *pSpecialKey = 0; //Clear special key + // Optionally process optional Alt-Cmd swap if (g_dwSwapAltCmd) { @@ -115,4 +107,5 @@ void ProcessA1644Buffer(BYTE* buf, ULONG size) break; } } + } \ No newline at end of file