[orca] Don't set the locusOfFocus to non-focused link when document claims focus
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't set the locusOfFocus to non-focused link when document claims focus
- Date: Tue, 21 Jul 2015 21:46:59 +0000 (UTC)
commit f7925891d11550462bc81dbad18c24da28df8828
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jul 21 17:43:37 2015 -0400
Don't set the locusOfFocus to non-focused link when document claims focus
src/orca/scripts/web/script.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index d7fb4a7..fcf1aa8 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1347,7 +1347,8 @@ class Script(default.Script):
wasFocused = obj.getState().contains(pyatspi.STATE_FOCUSED)
obj.clearCache()
isFocused = obj.getState().contains(pyatspi.STATE_FOCUSED)
- if wasFocused == isFocused:
+ if wasFocused == isFocused \
+ and not (obj.getRole() == pyatspi.ROLE_LINK 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]