Skip to content

Commit

Permalink
Disabled Fn + LShift + T workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
samartzidis committed Oct 22, 2020
1 parent 11e3bad commit 4c0e251
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 7 additions & 7 deletions WinAppleKey/A1644.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file modified WinAppleKey/resource.rc
Binary file not shown.

0 comments on commit 4c0e251

Please sign in to comment.