[orca] Suppress the Editable Content announcement for caret nav keys
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Suppress the Editable Content announcement for caret nav keys
- Date: Thu, 8 Feb 2018 21:08:08 +0000 (UTC)
commit b1b8f8176b7a8f904a13928486a6239909087d64
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 8 16:04:40 2018 -0500
Suppress the Editable Content announcement for caret nav keys
The message is meant for focus changes and structural navigation.
src/orca/scripts/web/speech_generator.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 3a6435c..791175d 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -318,7 +318,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
if role in [pyatspi.ROLE_ENTRY, pyatspi.ROLE_PASSWORD_TEXT]:
result.append(self.getLocalizedRoleName(obj, **args))
elif obj.parent and not obj.parent.getState().contains(pyatspi.STATE_EDITABLE):
- result.append(object_properties.ROLE_EDITABLE_CONTENT)
+ if lastKey not in ["Home", "End", "Up", "Down", "Left", "Right", "Page_Up", "Page_Down"]:
+ result.append(object_properties.ROLE_EDITABLE_CONTENT)
elif role not in doNotSpeak:
result.append(self.getLocalizedRoleName(obj, **args))
if result:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]