[orca] Don't check if an object is a top-level web app if it is still busy
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't check if an object is a top-level web app if it is still busy
- Date: Fri, 23 Oct 2015 02:50:58 +0000 (UTC)
commit 394434bcc96760964d5d986c0f3d9a47dfd7e06d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Oct 22 22:49:18 2015 -0400
Don't check if an object is a top-level web app if it is still busy
src/orca/scripts/web/script.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 73a4c10..cfb5a10 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1063,7 +1063,13 @@ class Script(default.Script):
self.utilities.clearCachedObjects()
obj, offset = self.utilities.getCaretContext()
- if self.utilities.isTopLevelWebApp(event.source):
+
+ try:
+ sourceIsBusy = event.souce.getState().contains(pyatspi.STATE_BUSY)
+ except:
+ sourceIsBusy = False
+
+ if not sourceIsBusy and self.utilities.isTopLevelWebApp(event.source):
msg = "WEB: Setting locusOfFocus to %s with sticky focus mode" % obj
debug.println(debug.LEVEL_INFO, msg)
orca.setLocusOfFocus(event, obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]