[orca] Be sure we have a last input event before checking its time for live region presentation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be sure we have a last input event before checking its time for live region presentation
- Date: Fri, 21 Dec 2012 12:26:05 +0000 (UTC)
commit 427c6dbbec2eb773f0b7a1da82c8211f7f69440b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Dec 21 13:25:06 2012 +0100
Be sure we have a last input event before checking its time for live region presentation
src/orca/liveregions.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/liveregions.py b/src/orca/liveregions.py
index 1f6017c..5fb4aa0 100644
--- a/src/orca/liveregions.py
+++ b/src/orca/liveregions.py
@@ -199,6 +199,7 @@ class LiveRegionManager:
# parameters such as rate,expanded text and others must be considered.
if len(self.msg_queue) > 0 \
and not speech.isSpeaking() \
+ and orca_state.lastInputEvent \
and time.time() - orca_state.lastInputEvent.time > 1:
# House cleaning on the message queue.
# First we will purge the queue of old messages
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]