[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - accessibility/source

Niklas Johansson sleeping.pillow at gmail.com
Wed Aug 13 06:48:05 PDT 2014


 accessibility/source/standard/vclxaccessiblelist.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit bd6048bf5ab668f59a950a41b6bddc5d862cfdce
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Fri Jul 4 19:25:09 2014 +0200

    Notify screen readers when selection changes in listboxes
    
    When you change selections in listboxes without dropdown fuctionality
    an accessilble event needs to be sent, this does not happen today.
    An example of such listbox is the Suggestions in the Spelling and
    Grammar dialog.
    
    Change-Id: I6100c88ae5398d8bf3f511aee7b35e88fbf151f5
    Reviewed-on: https://gerrit.libreoffice.org/10087
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/10893
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index beb252c..d54d515 100644
--- a/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -300,8 +300,13 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool b_IsDropDownList)
     }
     else if (m_aBoxType == LISTBOX && !b_IsDropDownList)
     {
-        if ( aNewValue.hasValue())
+        if ( aNewValue.hasValue() || aOldValue.hasValue() )
         {
+            NotifyAccessibleEvent(
+                    AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
+                    aOldValue,
+                    aNewValue );
+
             NotifyListItem(aNewValue);
         }
     }


More information about the Libreoffice-commits mailing list