[orca] Only speak newline during word nav if spoken indentation is enabled
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Only speak newline during word nav if spoken indentation is enabled
- Date: Tue, 3 Nov 2020 12:10:04 +0000 (UTC)
commit fc2ae1ca836b6f33c82faa8fa95e769aab01395f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 3 13:07:30 2020 +0100
Only speak newline during word nav if spoken indentation is enabled
Orca has always announced when using native word navigation resulted
in crossing a hard line boundary. Some users have recently indicated
that this is too chatty. Rather than add yet another setting, only
speak it if spoken indentation is enabled (which suggests whitespace
"chattiness"/information is desired)
src/orca/scripts/default.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index ab38a33d9..bf458f86f 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3406,7 +3406,8 @@ class Script(script.Script):
# Announce when we cross a hard line boundary.
if "\n" in word:
- self.speakCharacter("\n")
+ if _settingsManager.getSetting('enableSpeechIndentation'):
+ self.speakCharacter("\n")
if word.startswith("\n"):
startOffset += 1
elif word.endswith("\n"):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]