[orca] Treat push buttons with state has-popup as focus-mode widgets
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat push buttons with state has-popup as focus-mode widgets
- Date: Tue, 20 Aug 2019 22:34:02 +0000 (UTC)
commit 4b3f57dbbc73d7ba71c6440f9c47c7ca30149af7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 20 18:31:43 2019 -0400
Treat push buttons with state has-popup as focus-mode widgets
Otherwise, if they get destroyed and recreated when showing the popup,
they will claim focus and we'll bounce out of focus mode causing the
arrows to not navigate within the about-to-appear popup.
src/orca/scripts/web/script_utilities.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 81b843bec..c40c861b3 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1830,6 +1830,9 @@ class Utilities(script_utilities.Utilities):
and self.isLayoutOnly(self.getTable(obj)):
return False
+ if role == pyatspi.ROLE_PUSH_BUTTON and state.contains(pyatspi.STATE_HAS_POPUP):
+ return True
+
focusModeRoles = [pyatspi.ROLE_EMBEDDED,
pyatspi.ROLE_LIST_ITEM,
pyatspi.ROLE_TABLE_CELL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]