[orca] Fix for b.g.o #607901 - Sanity check needed in speakTextSelectionState
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] Fix for b.g.o #607901 - Sanity check needed in speakTextSelectionState
- Date: Sun, 24 Jan 2010 17:40:51 +0000 (UTC)
commit 2663b85f352fbd0818529f725043247ca9959cb4
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat Jan 23 18:57:51 2010 -0500
Fix for b.g.o #607901 - Sanity check needed in speakTextSelectionState
src/orca/default.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index 8649189..7205b68 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -7960,7 +7960,8 @@ class Script(script.Script):
# where <state> is either "selected" or "unselected" depending
# upon whether there are any text selections.
#
- if isinstance(orca_state.lastInputEvent, input_event.KeyboardEvent):
+ if isinstance(orca_state.lastInputEvent, input_event.KeyboardEvent) \
+ and orca_state.lastNonModifierKeyEvent:
eventStr = orca_state.lastNonModifierKeyEvent.event_string
mods = orca_state.lastInputEvent.modifiers
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]