[orca] Don't switch to focus mode if the object is a text block element
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't switch to focus mode if the object is a text block element
- Date: Sat, 20 Sep 2014 02:38:07 +0000 (UTC)
commit 1356bd781d0e18fad5f9e8cc07ff85aed9791dc9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 19 22:37:07 2014 -0400
Don't switch to focus mode if the object is a text block element
src/orca/scripts/toolkits/Gecko/script.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 119950a..323721f 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1350,7 +1350,8 @@ class Script(default.Script):
pyatspi.ROLE_TREE_TABLE,
pyatspi.ROLE_TREE]
- if role in focusModeRoles:
+ if role in focusModeRoles \
+ and not self.utilities.isTextBlockElement(obj):
return True
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]