diff options
| author | Vadim Shpakovski | 2015-08-10 02:44:50 +0300 |
|---|---|---|
| committer | Vadim Shpakovski | 2015-08-10 02:44:50 +0300 |
| commit | 1f3dbbce75729ac928838af5f726c13e1e15e683 (patch) | |
| tree | 191b3da1cd0d5896a9406bc16603090bc9ed4c72 | |
| parent | 3f63f8fefccf36f567308854f5b1e3908a15c9c3 (diff) | |
| parent | c98154e2c38ba22221c86967f70a108a86303b29 (diff) | |
| download | MASShortcut-1f3dbbce75729ac928838af5f726c13e1e15e683.tar.bz2 | |
Merge pull request #71 from Stillness-2/master
Some fix
| -rw-r--r-- | Framework/MASShortcutBinder.m | 1 | ||||
| -rw-r--r-- | Framework/MASShortcutView.m | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Framework/MASShortcutBinder.m b/Framework/MASShortcutBinder.m index 92ba6e8..4c0d7f9 100644 --- a/Framework/MASShortcutBinder.m +++ b/Framework/MASShortcutBinder.m @@ -109,6 +109,7 @@ // Just deleting the old shortcut if (newShortcut == nil) { + [_shortcuts removeObjectForKey:key]; return; } diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index 4952b4f..7b67411 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -398,6 +398,11 @@ void *kUserDataHint = &kUserDataHint; // Create a shortcut from the event MASShortcut *shortcut = [MASShortcut shortcutWithEvent:event]; + // Tab key must pass through. + if (shortcut.keyCode == kVK_Tab){ + return event; + } + // If the shortcut is a plain Delete or Backspace, clear the current shortcut and cancel recording if (!shortcut.modifierFlags && ((shortcut.keyCode == kVK_Delete) || (shortcut.keyCode == kVK_ForwardDelete))) { weakSelf.shortcutValue = nil; |
