vcl/unx/gtk4/a11y.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 69b50eee1cf103229d4d774fd54b46d0ff767472
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Oct 26 14:24:43 2023 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Oct 26 18:10:10 2023 +0200

    gtk4 a11y: Map checkbox role to gtk equivalent
    
    This makes a checkbox form control in a Writer document
    show up with the proper role in Accerciser, no longer
    as a filler.
    
    Change-Id: I5566d27ecfbe9ec54dcfbf20693899b72d3af738
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158505
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/unx/gtk4/a11y.cxx b/vcl/unx/gtk4/a11y.cxx
index 418037027f48..cbc2f853feaf 100644
--- a/vcl/unx/gtk4/a11y.cxx
+++ b/vcl/unx/gtk4/a11y.cxx
@@ -77,6 +77,9 @@ map_accessible_role(const 
css::uno::Reference<css::accessibility::XAccessible>&
             case css::accessibility::AccessibleRole::SEPARATOR:
                 eRole = GTK_ACCESSIBLE_ROLE_SEPARATOR;
                 break;
+            case css::accessibility::AccessibleRole::CHECK_BOX:
+                eRole = GTK_ACCESSIBLE_ROLE_CHECKBOX;
+                break;
             case css::accessibility::AccessibleRole::CHECK_MENU_ITEM:
                 eRole = GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX;
                 break;

Reply via email to