diff options
Diffstat (limited to 'Framework/MASShortcutView.m')
| -rw-r--r-- | Framework/MASShortcutView.m | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index 489889c..dfeeac6 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -555,4 +555,31 @@ void *kUserDataHint = &kUserDataHint;      return NSAccessibilityButtonRole;  } +- (BOOL)acceptsFirstResponder +{ +    return YES; +} + +- (BOOL)becomeFirstResponder +{ +    [self setNeedsDisplay:YES]; +    return [super becomeFirstResponder]; +} + +- (BOOL)resignFirstResponder +{ +    [self setNeedsDisplay:YES]; +    return [super resignFirstResponder]; +} + +- (void)drawFocusRingMask +{ +    [_shortcutCell drawFocusRingMaskWithFrame:[self bounds] inView:self]; +} + +- (NSRect)focusRingMaskBounds +{ +    return [self bounds]; +} +  @end | 
