[orca] Ignore state-changed:busy events resulting from Thunderbird print dialog



commit d2df3441b1153f18fa13fba220f765d2053796b4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Sep 8 11:35:29 2015 -0400

    Ignore state-changed:busy events resulting from Thunderbird print dialog

 src/orca/scripts/apps/Thunderbird/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index a3329f9..332ebed 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -180,10 +180,11 @@ class Script(Gecko.Script):
         if obj.getRole() == pyatspi.ROLE_DOCUMENT_FRAME and not event.detail1:
             try:
                 role = orca_state.locusOfFocus.getRole()
+                name = orca_state.locusOfFocus.name
             except:
                 pass
             else:
-                if role in [pyatspi.ROLE_FRAME, pyatspi.ROLE_PAGE_TAB]:
+                if role in [pyatspi.ROLE_FRAME, pyatspi.ROLE_PAGE_TAB] and name:
                     orca.setLocusOfFocus(event, event.source, False)
 
             if self.utilities.inDocumentContent():


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