[orca] Grab focus on image links during caret navigation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Grab focus on image links during caret navigation
- Date: Wed, 21 Mar 2018 17:55:24 +0000 (UTC)
commit ca8e953bbfa6a2a1e9471bff96f9513af2b37563
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Mar 21 13:54:26 2018 -0400
Grab focus on image links during caret navigation
src/orca/scripts/web/script_utilities.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 79b5ee5..1a61a88 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -336,6 +336,10 @@ class Utilities(script_utilities.Utilities):
if role == pyatspi.ROLE_ENTRY:
return False
+ if role == pyatspi.ROLE_IMAGE:
+ isLink = lambda x: x and x.getRole() == pyatspi.ROLE_LINK
+ return pyatspi.utils.findAncestor(obj, isLink) is not None
+
return state.contains(pyatspi.STATE_FOCUSABLE)
def grabFocus(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]