Skip to content

Commit

Permalink
Do not fiddle with accessibility title
Browse files Browse the repository at this point in the history
In this way VO reads 'type shortcut' when entering recording mode. When
recording is done, it will read the newly recorded shortcut.
  • Loading branch information
vendruscolo committed Oct 21, 2022
1 parent a2c892c commit 349fa68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Library/SRRecorderControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ - (void)_initInternalState

[self setAccessibilityElement:YES];
[self setAccessibilityRole:NSAccessibilityButtonRole];
[self setAccessibilityTitle:[self accessibilityLabel]];
[self setAccessibilityEnabled:YES];

[self setToolTip:SRLoc(@"Click to record shortcut")];
Expand Down Expand Up @@ -431,6 +430,11 @@ - (NSString *)accessibilityLabel
return label;
}

- (NSString *)accessibilityTitle
{
return [self accessibilityLabel];
}

- (NSString *)stringValue
{
if (![self.objectValue count])
Expand Down

0 comments on commit 349fa68

Please sign in to comment.