[orca/gnome-3-14] Ignore text insertions from menus and menu items



commit 7816f59a160f8d6dc068e1de576a78f4c1f38a92
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 9 12:42:37 2015 -0500

    Ignore text insertions from menus and menu items
    
    We shouldn't even be getting these events in the first place, but....

 src/orca/scripts/default.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 7eb57d8..c92cf46 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2615,6 +2615,8 @@ class Script(script.Script):
             return
 
         ignoreRoles = [pyatspi.ROLE_LABEL,
+                       pyatspi.ROLE_MENU,
+                       pyatspi.ROLE_MENU_ITEM,
                        pyatspi.ROLE_SLIDER,
                        pyatspi.ROLE_SPIN_BUTTON]
         role = event.source.getRole()


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