[orca] Keep Tab and Escape from being passed through in Learn Mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Keep Tab and Escape from being passed through in Learn Mode
- Date: Fri, 27 Jan 2012 22:14:17 +0000 (UTC)
commit 60a9c69a8e2336dcb3d8cf0f48301726ea78b257
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jan 27 17:08:31 2012 -0500
Keep Tab and Escape from being passed through in Learn Mode
src/orca/input_event.py | 2 +-
src/orca/orca.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 750bfe7..a37019e 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -389,7 +389,7 @@ class KeyboardEvent(InputEvent):
if we presented the event. False if there was some reason the event
was not worthy of presentation."""
- if self.shouldEcho == False:
+ if self.shouldEcho == False and not settings.learnModeEnabled:
return False
if self.isOrcaModified():
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 6053e8e..909e58a 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -808,7 +808,7 @@ def _processKeyboardEvent(event):
if notification_messages.listNotificationMessagesModeEnabled:
return notification_messages.listNotificationMessages(keyboardEvent)
if settings.learnModeEnabled:
- if keyboardEvent.isPrintableKey() and not _orcaModifierPressed:
+ if not _orcaModifierPressed:
return True
# See if the event manager wants it (i.e. it is bound to a command.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]