Kaydet (Commit) ccaeafab authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: tdf#82998 don't emit an Indeterminate state change for boxes

Emitting object:state-changed:indeterminate is appropriate for things like
tri-state checkboxes when the state is neither fully checked nor fully
unchecked. ... jdiggs think that this event doesn't make sense in this instance
for any platform's accessibility API

Change-Id: Id8288522a825ad7ff61524ad4f225a79c015bb8f
üst db41e274
...@@ -113,9 +113,8 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven ...@@ -113,9 +113,8 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
case VCLEVENT_DROPDOWN_SELECT: case VCLEVENT_DROPDOWN_SELECT:
case VCLEVENT_LISTBOX_SELECT: case VCLEVENT_LISTBOX_SELECT:
case VCLEVENT_LISTBOX_FOCUSITEMCHANGED: case VCLEVENT_LISTBOX_FOCUSITEMCHANGED:
{ {
// Forward the call to the list child. // Forward the call to the list child.
VCLXAccessibleList* pList = static_cast<VCLXAccessibleList*>(m_xList.get()); VCLXAccessibleList* pList = static_cast<VCLXAccessibleList*>(m_xList.get());
if ( pList == NULL ) if ( pList == NULL )
{ {
...@@ -125,14 +124,9 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven ...@@ -125,14 +124,9 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
if ( pList != NULL ) if ( pList != NULL )
{ {
pList->ProcessWindowEvent (rVclWindowEvent, m_bIsDropDownBox); pList->ProcessWindowEvent (rVclWindowEvent, m_bIsDropDownBox);
if(m_bIsDropDownBox) if (m_bIsDropDownBox)
{ {
NotifyAccessibleEvent(AccessibleEventId::VALUE_CHANGED, Any(), Any()); NotifyAccessibleEvent(AccessibleEventId::VALUE_CHANGED, Any(), Any());
Any aOldValue;
Any aNewValue;
aOldValue <<= AccessibleStateType::INDETERMINATE;
NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue);
} }
} }
break; break;
...@@ -187,12 +181,6 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven ...@@ -187,12 +181,6 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
pList->UpdateSelection_Acc(sText, m_bIsDropDownBox); pList->UpdateSelection_Acc(sText, m_bIsDropDownBox);
if (m_bIsDropDownBox || ( !m_bIsDropDownBox && m_aBoxType==COMBOBOX)) if (m_bIsDropDownBox || ( !m_bIsDropDownBox && m_aBoxType==COMBOBOX))
NotifyAccessibleEvent(AccessibleEventId::VALUE_CHANGED, Any(), Any()); NotifyAccessibleEvent(AccessibleEventId::VALUE_CHANGED, Any(), Any());
Any aOldValue;
Any aNewValue;
aOldValue <<= AccessibleStateType::INDETERMINATE;
NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aOldValue, aNewValue);
} }
} }
break; break;
......
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