[orca] Use F2 and F3 rather than 1 and 2 to display shortcuts in Learn Mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Use F2 and F3 rather than 1 and 2 to display shortcuts in Learn Mode
- Date: Wed, 16 Oct 2013 15:34:41 +0000 (UTC)
commit a5cde3cb2ea1627e6dcc39b381338561d2ea1e89
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 16 11:33:56 2013 -0400
Use F2 and F3 rather than 1 and 2 to display shortcuts in Learn Mode
src/orca/messages.py | 5 +++--
src/orca/orca.py | 2 +-
src/orca/scripts/default.py | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/messages.py b/src/orca/messages.py
index b3a74b9..ae7f902 100644
--- a/src/orca/messages.py
+++ b/src/orca/messages.py
@@ -834,9 +834,10 @@ LEARN_MODE_START_BRAILLE = _("Learn mode. Press escape to exit.")
# Mode.
LEARN_MODE_START_SPEECH = \
_("Entering learn mode. Press any key to hear its function. " \
- "To get a list of the screen reader's default shortcuts, press 1. " \
+ "To view the screen reader's documentation, press F1. " \
+ "To get a list of the screen reader's default shortcuts, press F2. " \
"To get a list of the screen reader's shortcuts for the current application, " \
- "press 2. To view the screen reader's documentation, press F1. " \
+ "press F3. " \
"To exit learn mode, press the escape key.")
# Translators: when the user selects (highlights) or unselects text in a
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 4a6662f..8201c5d 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -244,7 +244,7 @@ def _processKeyboardEvent(event):
if keyboardEvent.event_string == "F1":
orca_state.learnModeEnabled = False
return helpForOrca()
- if keyboardEvent.event_string in ["1", "2"]:
+ if keyboardEvent.event_string in ["F2", "F3"]:
orca_state.learnModeEnabled = False
return script.listOrcaShortcuts(keyboardEvent)
if orca_state.capturingKeys:
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 8350f5b..a069d32 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1046,7 +1046,7 @@ class Script(script.Script):
def listOrcaShortcuts(self, inputEvent=None):
"""Shows a simple gui listing Orca's bound commands."""
- if not inputEvent or inputEvent.event_string == "1":
+ if not inputEvent or inputEvent.event_string == "F2":
bound = self.getDefaultKeyBindings().getBoundBindings()
title = messages.shortcutsFoundOrca(len(bound))
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]