aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASShortcutView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/MASShortcutView.m')
-rw-r--r--Framework/MASShortcutView.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m
index 4132ce2..d96989c 100644
--- a/Framework/MASShortcutView.m
+++ b/Framework/MASShortcutView.m
@@ -24,6 +24,7 @@ NSString *const MASShortcutBinding = @"shortcutValue";
NSInteger _shortcutToolTipTag;
NSInteger _hintToolTipTag;
NSTrackingArea *_hintArea;
+ BOOL _acceptsFirstResponder;
}
#pragma mark -
@@ -59,6 +60,7 @@ NSString *const MASShortcutBinding = @"shortcutValue";
_shortcutValidator = [MASShortcutValidator sharedValidator];
_enabled = YES;
_showsDeleteButton = YES;
+ _acceptsFirstResponder = NO;
[self resetShortcutCellStyle];
}
@@ -565,7 +567,12 @@ void *kUserDataHint = &kUserDataHint;
- (BOOL)acceptsFirstResponder
{
- return YES;
+ return _acceptsFirstResponder;
+}
+
+- (void)setAcceptsFirstResponder:(BOOL)value
+{
+ _acceptsFirstResponder = value;
}
- (BOOL)becomeFirstResponder