[orca] Eliminate double-presentation of custom selection messages
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Eliminate double-presentation of custom selection messages
- Date: Fri, 18 Mar 2016 18:25:19 +0000 (UTC)
commit 8dd65cd83a41a39f224c89d4500780041c72a11e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Mar 18 14:24:56 2016 -0400
Eliminate double-presentation of custom selection messages
src/orca/script_utilities.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index c5e407e..9b4111e 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4047,6 +4047,7 @@ class Utilities:
self._script.pointOfReference['undo'] = False
self._script.pointOfReference['redo'] = False
self._script.pointOfReference['paste'] = False
+ self._script.pointOfReference['last-selection-message'] = ''
def handleUndoTextEvent(self, event):
if self.lastInputEventWasUndo():
@@ -4210,8 +4211,11 @@ class Utilities:
else:
return True
- if line:
+ if not line:
+ return False
+
+ if line != self._script.pointOfReference.get('last-selection-message'):
+ self._script.pointOfReference['last-selection-message'] = line
self._script.speakMessage(line)
- return True
- return False
+ return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]