Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Make MASShortcutView an accessibility element. #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 authored and Vadim Shpakovski committed Jan 21, 2021
1 parent 592d0de commit 1d8629c
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 1d8629c

Please sign in to comment.