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

Michael Weghorn (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 2 19:29:10 UTC 2021


 vcl/source/window/accessibility.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 45e7e31f328ac572d4278ea94557d92cd99a1bd2
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Thu Sep 2 17:43:16 2021 +0200
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Thu Sep 2 21:28:34 2021 +0200

    tdf#35129 a11y: Let SPINBUTTON have role SPIN_BOX, not PUSH_BUTTON
    
    Change-Id: I3aaac19890a356e930203ecdb003edfbfed1b52b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121516
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>

diff --git a/vcl/source/window/accessibility.cxx b/vcl/source/window/accessibility.cxx
index 732415572dee..238eacc0518e 100644
--- a/vcl/source/window/accessibility.cxx
+++ b/vcl/source/window/accessibility.cxx
@@ -250,8 +250,7 @@ sal_uInt16 Window::getDefaultAccessibleRole() const
         case WindowType::CANCELBUTTON:
         case WindowType::HELPBUTTON:
         case WindowType::IMAGEBUTTON:
-        case WindowType::MOREBUTTON:
-        case WindowType::SPINBUTTON: nRole = accessibility::AccessibleRole::PUSH_BUTTON; break;
+        case WindowType::MOREBUTTON: nRole = accessibility::AccessibleRole::PUSH_BUTTON; break;
         case WindowType::MENUBUTTON: nRole = accessibility::AccessibleRole::BUTTON_MENU; break;
 
         case WindowType::RADIOBUTTON: nRole = accessibility::AccessibleRole::RADIO_BUTTON; break;
@@ -299,6 +298,7 @@ sal_uInt16 Window::getDefaultAccessibleRole() const
 
         case WindowType::METRICFIELD:
         case WindowType::CURRENCYFIELD:
+        case WindowType::SPINBUTTON:
         case WindowType::SPINFIELD:
         case WindowType::FORMATTEDFIELD: nRole = accessibility::AccessibleRole::SPIN_BOX; break;
 


More information about the Libreoffice-commits mailing list