[orca/gnome-3-36] Thunderbird: Ignore busy-changed events when in focus mode



commit 291e613fcf9913a1c80ca5305c7736fd3c80ee01
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Mar 20 10:48:24 2020 -0400

    Thunderbird: Ignore busy-changed events when in focus mode
    
    Thunderbird's settings UI now consists of web content, in which choosing
    an option in the tree on the left causes us to get events which look like
    a new document or message was loaded. If we ignore these events in focus
    mode, the user's location will not be incorrectly changed to the document.

 src/orca/scripts/apps/Thunderbird/script.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index f19c66ed6..8ebdeb974 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -194,6 +194,9 @@ class Script(Gecko.Script):
         if self.utilities.isEditableMessage(event.source):
             return
 
+        if self.inFocusMode():
+            return
+
         obj = event.source
         if self.utilities.isDocument(obj) and not event.detail1:
             try:


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