[orca] Don't double/multi-present selection-state messages
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't double/multi-present selection-state messages
- Date: Tue, 24 Nov 2015 11:17:49 +0000 (UTC)
commit e27ae2d4d23d6a2d34f944f190850ac91027b6ac
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 24 06:13:48 2015 -0500
Don't double/multi-present selection-state messages
src/orca/scripts/default.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index ddf418c..04ff3ff 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3896,7 +3896,11 @@ class Script(script.Script):
else:
line = messages.DOCUMENT_SELECTED_UP
elif (eventStr == "A") and isControlKey and selectedText:
- line = messages.DOCUMENT_SELECTED_ALL
+ if not self.pointOfReference.get('entireDocumentSelected'):
+ self.pointOfReference['entireDocumentSelected'] = True
+ line = messages.DOCUMENT_SELECTED_ALL
+ else:
+ return True
if line:
speech.speak(line, None, False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]