[orca] Fix more of the post-refactor terminal keyecho issues.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix more of the post-refactor terminal keyecho issues.
- Date: Thu, 2 Feb 2012 02:17:44 +0000 (UTC)
commit d86c80a4a15e644e07a05fd2cf0e4e8d17aa4125
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 1 21:16:58 2012 -0500
Fix more of the post-refactor terminal keyecho issues.
src/orca/input_event.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 0c17ed5..f2d4213 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -409,11 +409,12 @@ class KeyboardEvent(InputEvent):
if role == pyatspi.ROLE_TERMINAL:
try:
text = orca_state.locusOfFocus.queryText()
- string = text.getText(0, -1).strip()
+ o = text.caretOffset
+ string = text.getText(o-1, o)
except:
pass
else:
- if not string.endswith(self.event_string):
+ if not self.event_string in [string, 'space']:
return False
orca_state.lastKeyEchoTime = time.time()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]