aboutsummaryrefslogtreecommitdiffstats
path: root/Framework
diff options
context:
space:
mode:
authorRoman Sokolov2015-08-09 21:55:03 +0300
committerRoman Sokolov2015-08-09 21:55:03 +0300
commitc98154e2c38ba22221c86967f70a108a86303b29 (patch)
tree191b3da1cd0d5896a9406bc16603090bc9ed4c72 /Framework
parent5ead539397ba9f939573b187fac825c61facd25c (diff)
downloadMASShortcut-c98154e2c38ba22221c86967f70a108a86303b29.tar.bz2
fix for keyboard navigation
Tab key must pass through. This is important if you want to do keyboard navigation through this control.
Diffstat (limited to 'Framework')
-rw-r--r--Framework/MASShortcutView.m5
1 files changed, 5 insertions, 0 deletions
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;