summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNiklas Johansson <sleeping.pillow@gmail.com>2014-07-04 19:25:09 +0200
committerDavid Tardon <dtardon@redhat.com>2014-08-13 08:47:41 -0500
commitbd6048bf5ab668f59a950a41b6bddc5d862cfdce (patch)
tree5f1aced572f80de7c20789007182633f9abb528a /accessibility
parentf75e494ad9b9a3ef6257e8eda452ab2cb9c7d6ad (diff)
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@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/10893 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index beb252cc3f9c..d54d515c3e77 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);
}
}