[orca] Web: Eliminate some chattiness from ARIA page tabs
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Eliminate some chattiness from ARIA page tabs
- Date: Thu, 24 Mar 2022 11:50:57 +0000 (UTC)
commit 90a59eb05503252aa4260e5fa56511da5b86a155
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Mar 24 12:46:27 2022 +0100
Web: Eliminate some chattiness from ARIA page tabs
The ARIA 'tab' role supports aria-expanded and nothing prohibits it
from being applied in a single-selection tablist. If an author sets
both aria-selected and aria-expanded on the newly-selected/active
tab, we'll double-present that tab. Therefore, store the expanded
state when selection changes so we can identify when it truly changed
independent of selection.
src/orca/scripts/default.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index f9f90126f..cf9084a58 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -845,6 +845,8 @@ class Script(script.Script):
hash(obj), state.contains(pyatspi.STATE_CHECKED)
self.pointOfReference['selectedChange'] = \
hash(obj), state.contains(pyatspi.STATE_SELECTED)
+ self.pointOfReference['expandedChange'] = \
+ hash(obj), state.contains(pyatspi.STATE_EXPANDED)
def locusOfFocusChanged(self, event, oldLocusOfFocus, newLocusOfFocus):
"""Called when the visual object with focus changes.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]