[Libreoffice-commits] core.git: vcl/osx

Niklas Johansson sleeping.pillow at gmail.com
Fri Mar 21 04:30:32 PDT 2014


 vcl/osx/a11yrolehelper.mm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 44a6c8eed837ab5e82b9db5e8138a94bd161a4ea
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Thu Mar 20 18:27:39 2014 +0100

    Improve Accessibility mapping of roles for Mac
    
    Since role Heading now is exposed to A11y we need to give it a better role then
    unknown, otherwise it gets inaccessible to VoiceOver. Until I get a better grip
    on how to best expose AXHeading, let's map it to textAreaRole so we at least
    get back to the behaviour before IA2 integration.
    Header and Footer is probably best mapped to AXGroup.
    
    Change-Id: I6353f4d25c18e6e550df289ca2e999ad1c01f2a8
    Reviewed-on: https://gerrit.libreoffice.org/8682
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/osx/a11yrolehelper.mm b/vcl/osx/a11yrolehelper.mm
index ae2391f..45423db 100644
--- a/vcl/osx/a11yrolehelper.mm
+++ b/vcl/osx/a11yrolehelper.mm
@@ -59,14 +59,14 @@ using namespace ::com::sun::star::uno;
         MAP( AccessibleRole::FILE_CHOOSER, NSAccessibilityUnknownRole ); // FIXME
         MAP( AccessibleRole::FILLER, NSAccessibilityUnknownRole ); // FIXME
         MAP( AccessibleRole::FONT_CHOOSER, NSAccessibilityUnknownRole ); // FIXME
-        MAP( AccessibleRole::FOOTER, NSAccessibilityUnknownRole ); // FIXME
+        MAP( AccessibleRole::FOOTER, NSAccessibilityGroupRole ); // FIXME
         MAP( AccessibleRole::FOOTNOTE, NSAccessibilityUnknownRole ); // FIXME
         MAP( AccessibleRole::FRAME, NSAccessibilityWindowRole );
         MAP( AccessibleRole::GLASS_PANE, NSAccessibilityUnknownRole ); // FIXME
         MAP( AccessibleRole::GRAPHIC, NSAccessibilityImageRole );
         MAP( AccessibleRole::GROUP_BOX, NSAccessibilityGroupRole );
-        MAP( AccessibleRole::HEADER, NSAccessibilityUnknownRole ); // FIXME
-        MAP( AccessibleRole::HEADING, NSAccessibilityUnknownRole ); // FIXME
+        MAP( AccessibleRole::HEADER, NSAccessibilityGroupRole ); // FIXME
+        MAP( AccessibleRole::HEADING, NSAccessibilityTextAreaRole ); // FIXME
         MAP( AccessibleRole::HYPER_LINK, NSAccessibilityLinkRole );
         MAP( AccessibleRole::ICON, NSAccessibilityImageRole );
         MAP( AccessibleRole::INTERNAL_FRAME, NSAccessibilityUnknownRole ); // FIXME


More information about the Libreoffice-commits mailing list