Skip to content

Commit

Permalink
Make MASShortcutView an accessibility element. cocoabits#152
Browse files Browse the repository at this point in the history
This makes it possible to select it using VoiceOver and prevents the system from ignoring the accessibility notification that's posted when the shortcut is changed.
  • Loading branch information
michaeljtsai committed Jan 20, 2021
1 parent 592d0de commit 7e9014d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Framework/UI/MASShortcutView.m
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ -(void) propagateValue:(id)value forBinding:(NSString*)binding

#pragma mark - Accessibility

- (BOOL)isAccessibilityElement
{
return YES;
}

- (NSString *)accessibilityHelp
{
return MASLocalizedString(@"To record a new shortcut, click this button, and then type the"
Expand Down

0 comments on commit 7e9014d

Please sign in to comment.