diff options
author | Boris Dušek <me@dusek.me> | 2013-08-02 00:20:57 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-08-07 19:08:26 +0000 |
commit | 39a78087890fb9255a5e47220bac6cfb956fcfe0 (patch) | |
tree | 35350814d09b52d9aa640d3ce645ec9cde06f0c6 /vcl/aqua | |
parent | 58464deee44db80657885e39ead33d7ccc7dda30 (diff) |
Use NSAccessibilityActionDescription for action descriptions
Change-Id: I26a233e72274be7afc2e3e41e13a6743f75e695f
Reviewed-on: https://gerrit.libreoffice.org/5238
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/a11y/aqua11ywrapper.mm | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/vcl/aqua/source/a11y/aqua11ywrapper.mm b/vcl/aqua/source/a11y/aqua11ywrapper.mm index 82163ae7c528..47ca292fe3a3 100644 --- a/vcl/aqua/source/a11y/aqua11ywrapper.mm +++ b/vcl/aqua/source/a11y/aqua11ywrapper.mm @@ -905,30 +905,9 @@ static std::ostream &operator<<(std::ostream &s, NSPoint point) { return self; } -// TODO: hard-coded like the role descriptions. is there a better way? -(NSString *)accessibilityActionDescription:(NSString *)action { AX_SAL_DEBUG("[" << self << " accessibilityActionDescription:" << action << "]"); - if ( [ action isEqualToString: NSAccessibilityConfirmAction ] ) { - return @"confirm"; - } else if ( [ action isEqualToString: NSAccessibilityDecrementAction ] ) { - return @"decrement"; - } else if ( [ action isEqualToString: NSAccessibilityDeleteAction ] ) { - return @"delete"; - } else if ( [ action isEqualToString: NSAccessibilityIncrementAction ] ) { - return @"increment"; - } else if ( [ action isEqualToString: NSAccessibilityPickAction ] ) { - return @"pick"; - } else if ( [ action isEqualToString: NSAccessibilityPressAction ] ) { - return @"press"; - } else if ( [ action isEqualToString: NSAccessibilityCancelAction ] ) { - return @"cancel"; - } else if ( [ action isEqualToString: NSAccessibilityRaiseAction ] ) { - return @"raise"; - } else if ( [ action isEqualToString: NSAccessibilityShowMenuAction ] ) { - return @"show menu"; - } else { - return [ NSString string ]; - } + return NSAccessibilityActionDescription(action); } -(AquaA11yWrapper *)actionResponder { |