Skip to content

Commit

Permalink
fix main hot key when dont use hot key
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyenvm committed Sep 6, 2019
1 parent da405d6 commit 784a92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenKey/macOS/ModernKey/OpenKey.mm
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void SendNewCharString(const bool& dataFromMacro=false, const Uint16& offset=0)
}

bool checkHotKey(int hotKeyData, bool checkKeyCode=true) {
if (hotKeyData == EMPTY_HOTKEY)
if ((hotKeyData & (~0x8000)) == EMPTY_HOTKEY)
return false;
if (HAS_CONTROL(hotKeyData) ^ GET_BOOL(_lastFlag & kCGEventFlagMaskControl))
return false;
Expand Down

0 comments on commit 784a92a

Please sign in to comment.