[orca] Explicitly activate script when selection changes in focused menu



commit 1550923feb4d20112c12546bba5262040ff13daa
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Feb 7 14:14:53 2017 -0500

    Explicitly activate script when selection changes in focused menu

 src/orca/event_manager.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index b110bd9..cbcf091 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -591,6 +591,10 @@ class EventManager:
                and event.detail1):
             return True, "Event source claimed focus."
 
+        if eType.startswith('object:state-changed:selected') and event.detail1 \
+           and role == pyatspi.ROLE_MENU and state.contains(pyatspi.STATE_FOCUSED):
+            return True, "Selection change in focused menu"
+
         # This condition appears with gnome-screensave-dialog.
         # See bug 530368.
         if eType.startswith('object:state-changed:showing') \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]