Kaydet (Commit) c6ff6106 authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Norbert Thiebaud

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/10087Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst e18e2b17
...@@ -300,8 +300,13 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool b_IsDropDownList) ...@@ -300,8 +300,13 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool b_IsDropDownList)
} }
else if (m_aBoxType == LISTBOX && !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); NotifyListItem(aNewValue);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment