[orca] Do not exit learn mode or repeat the prompt if no application shortcuts found
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Do not exit learn mode or repeat the prompt if no application shortcuts found
- Date: Thu, 17 Oct 2013 18:38:17 +0000 (UTC)
commit 6c091ea23cbe9e439c492ecd9c01ef615fe00ab6
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Oct 17 14:37:04 2013 -0400
Do not exit learn mode or repeat the prompt if no application shortcuts found
src/orca/orca.py | 3 +--
src/orca/scripts/default.py | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 8201c5d..ae55c4f 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -244,8 +244,7 @@ def _processKeyboardEvent(event):
if keyboardEvent.event_string == "F1":
orca_state.learnModeEnabled = False
return helpForOrca()
- if keyboardEvent.event_string in ["F2", "F3"]:
- orca_state.learnModeEnabled = False
+ if isPressedEvent and keyboardEvent.event_string in ["F2", "F3"]:
return script.listOrcaShortcuts(keyboardEvent)
if orca_state.capturingKeys:
return False
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index a069d32..a3afac6 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1061,7 +1061,6 @@ class Script(script.Script):
if not bound:
self.presentMessage(title)
- self.presentMessage(messages.LEARN_MODE_START_SPEECH)
return True
self.exitLearnMode()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]