[orca/gnome-3-28] Ignore name-change events from canvas and icon



commit 1692ced7305db4a9b9b48a47786a356b100ab8d3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Apr 20 12:18:38 2018 -0400

    Ignore name-change events from canvas and icon
    
    We can use other events for user-based changes.

 src/orca/event_manager.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 053cd6f..19ba35d 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -174,6 +174,13 @@ class EventManager:
                 debug.println(debug.LEVEL_INFO, msg, True)
                 return True
 
+        if event.type.startswith('object:property-change:accessible-name'):
+            if role in [pyatspi.ROLE_CANVAS,
+                        pyatspi.ROLE_ICON]:
+                msg = 'EVENT MANAGER: Ignoring event type due to role'
+                debug.println(debug.LEVEL_INFO, msg, True)
+                return True
+
         if event.type.startswith('object:state-changed:sensitive'):
             if role in [pyatspi.ROLE_MENU_ITEM,
                         pyatspi.ROLE_CHECK_MENU_ITEM,


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