[orca] Use isLink() rather than a role check to eliminate false positive from anchor
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Use isLink() rather than a role check to eliminate false positive from anchor
- Date: Sun, 22 Nov 2015 16:45:31 +0000 (UTC)
commit 30dddfb084fe97b301778ef2e84f489284d8d27a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Nov 22 11:40:19 2015 -0500
Use isLink() rather than a role check to eliminate false positive from anchor
src/orca/scripts/web/script.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 8ece8e9..cd8c178 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1441,7 +1441,7 @@ class Script(default.Script):
obj.clearCache()
isFocused = obj.getState().contains(pyatspi.STATE_FOCUSED)
if wasFocused == isFocused \
- and not (obj.getRole() == pyatspi.ROLE_LINK and not isFocused):
+ and not (self.utilities.isLink(obj) and not isFocused):
msg = "WEB: Event handled: Setting locusOfFocus to context"
debug.println(debug.LEVEL_INFO, msg)
orca.setLocusOfFocus(event, obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]