[orca] Fix for bgo#582318 - Pressing panning buttons on the braille display should not interupt speech
- From: Mesar Hameed <mhameed src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#582318 - Pressing panning buttons on the braille display should not interupt speech
- Date: Sat, 8 Aug 2009 18:06:25 +0000 (UTC)
commit 921af19ba4daf43e6c73c770e25a2917c353b0dd
Author: Mesar Hameed <mhameed src gnome org>
Date: Sat Aug 8 19:02:00 2009 +0100
Fix for bgo#582318 - Pressing panning buttons on the braille display should not interupt speech
src/orca/braille.py | 7 +++++++
src/orca/orca.py | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index f069504..39b14d7 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -77,6 +77,13 @@ from orca_i18n import _ # for gettext support
#
_monitor = None
+# brlapi keys which are not allowed to interupt speech:
+#
+dontInteruptSpeechKeys = []
+if _brlAPIAvailable:
+ dontInteruptSpeechKeys = [brlapi.KEY_CMD_FWINLT, brlapi.KEY_CMD_FWINRT, \
+ brlapi.KEY_CMD_LNUP, brlapi.KEY_CMD_LNDN]
+
# Common names for most used BrlTTY commands, to be shown in the GUI:
# ATM, the ones used in default.py are:
#
diff --git a/src/orca/orca.py b/src/orca/orca.py
index e69c357..ac300e4 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -909,9 +909,9 @@ def _processBrailleEvent(event):
# Braille key presses always interrupt speech.
#
- speech.stop()
-
event = BrailleEvent(event)
+ if event.event['command'] not in braille.dontInteruptSpeechKeys:
+ speech.stop()
orca_state.lastInputEvent = event
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]