[orca] Do not speak the standard text "tutorial" message for non-editable text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Do not speak the standard text "tutorial" message for non-editable text
- Date: Fri, 12 Sep 2014 19:16:30 +0000 (UTC)
commit f7f373ad4689e9c19c7136a4e84ccd4904488374
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 12 15:15:27 2014 -0400
Do not speak the standard text "tutorial" message for non-editable text
src/orca/tutorialgenerator.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/tutorialgenerator.py b/src/orca/tutorialgenerator.py
index f53c3de..0f75df2 100644
--- a/src/orca/tutorialgenerator.py
+++ b/src/orca/tutorialgenerator.py
@@ -411,6 +411,10 @@ class TutorialGenerator:
Returns a list of tutorial utterances to be spoken for the object.
"""
+
+ if not obj.getState().contains(pyatspi.STATE_EDITABLE):
+ return []
+
utterances = []
# Translators: This is the tutorial string for when landing
# on text fields.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]