Skip to content

Commit

Permalink
Bug fix with remapped "del" not repeating
Browse files Browse the repository at this point in the history
  • Loading branch information
samartzidis committed Oct 22, 2020
1 parent 4c0e251 commit ba750ca
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions WinAppleKey/A1644.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -115,4 +107,5 @@ void ProcessA1644Buffer(BYTE* buf, ULONG size)
break;
}
}

}

0 comments on commit ba750ca

Please sign in to comment.