[orca] Handle expansion event coming after focused-child event for combo boxes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle expansion event coming after focused-child event for combo boxes
- Date: Sun, 5 May 2019 21:16:58 +0000 (UTC)
commit 6b4668145a09211cc38f7038881d28a7d816a6d9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun May 5 17:15:58 2019 -0400
Handle expansion event coming after focused-child event for combo boxes
src/orca/script_utilities.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 3debd8301..4b26220f1 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4836,9 +4836,12 @@ class Utilities:
debug.println(debug.LEVEL_INFO, msg, True)
return False
- if role in [pyatspi.ROLE_TABLE_ROW, pyatspi.ROLE_COMBO_BOX, pyatspi.ROLE_LIST_BOX]:
+ if role in [pyatspi.ROLE_TABLE_ROW, pyatspi.ROLE_LIST_BOX]:
return True
+ if role == pyatspi.ROLE_COMBO_BOX:
+ return state.contains(pyatspi.STATE_FOCUSED)
+
if role == pyatspi.ROLE_PUSH_BUTTON:
return state.contains(pyatspi.STATE_FOCUSED)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]