[orca] Skip over empty paragraphs during caret navigation in web content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Skip over empty paragraphs during caret navigation in web content
- Date: Tue, 11 Feb 2020 15:54:35 +0000 (UTC)
commit 184b17f8ae99a84e5ed7af2904827101dd7e4fe3
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 11 16:53:43 2020 +0100
Skip over empty paragraphs during caret navigation in web content
src/orca/scripts/web/script_utilities.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 6c53f6202..9d2023e88 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3514,7 +3514,12 @@ class Utilities(script_utilities.Utilities):
debug.println(debug.LEVEL_INFO, msg, True)
return False
- if role not in [pyatspi.ROLE_SECTION, pyatspi.ROLE_STATIC, pyatspi.ROLE_TABLE_ROW]:
+ roles = [pyatspi.ROLE_PARAGRAPH,
+ pyatspi.ROLE_SECTION,
+ pyatspi.ROLE_STATIC,
+ pyatspi.ROLE_TABLE_ROW]
+
+ if role not in roles:
rv = False
elif state.contains(pyatspi.STATE_FOCUSABLE) or state.contains(pyatspi.STATE_FOCUSED):
rv = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]