[orca] Update Orca's keybindings related to bookmarks and "list of" commands
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Update Orca's keybindings related to bookmarks and "list of" commands
- Date: Tue, 5 Feb 2013 13:37:38 +0000 (UTC)
commit c65200edf508e32331badcb20694ecfb6e962636
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 5 08:33:45 2013 -0500
Update Orca's keybindings related to bookmarks and "list of" commands
* Unbind the "where am I with respect to bookmark" commmand
* Change the new "list of" commands to use Alt+Shift instead of
Ctrl+Shift as the modifier
* Bind links and lists according to the Alt+Shift change
src/orca/common_keyboardmap.py | 12 ++++++------
src/orca/structural_navigation.py | 33 ++++++++++++++++-----------------
2 files changed, 22 insertions(+), 23 deletions(-)
---
diff --git a/src/orca/common_keyboardmap.py b/src/orca/common_keyboardmap.py
index 4646727..21899ac 100644
--- a/src/orca/common_keyboardmap.py
+++ b/src/orca/common_keyboardmap.py
@@ -126,17 +126,17 @@ keymap = (
# key binding for WhereAmI information with respect to root acc
- ("1", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
- ("2", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
- ("3", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
- ("4", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
- ("5", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
- ("6", defaultModifierMask, SHIFT_ALT_MODIFIER_MASK,
+ ("", defaultModifierMask, NO_MODIFIER_MASK,
"bookmarkCurrentWhereAmI"),
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 7c72901..ec1959c 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -2007,7 +2007,7 @@ class StructuralNavigation:
# document.
#
listDesc = _("Displays a list of blockquotes.")
- bindings["list"] = ["q", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["q", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _blockquoteCriteria(self, collection, arg=None):
@@ -2124,7 +2124,7 @@ class StructuralNavigation:
# within a document.
#
listDesc = _("Displays a list of buttons.")
- bindings["list"] = ["b", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["b", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _buttonCriteria(self, collection, arg=None):
@@ -2237,7 +2237,7 @@ class StructuralNavigation:
# within a document.
#
listDesc = _("Displays a list of check boxes.")
- bindings["list"] = ["x", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["x", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _checkBoxCriteria(self, collection, arg=None):
@@ -2360,7 +2360,7 @@ class StructuralNavigation:
# chunk of text, such as a paragraph, a list, a table, etc.
#
listDesc = _("Displays a list of large objects.")
- bindings["list"] = ["o", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["o", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _chunkCriteria(self, collection, arg=None):
@@ -2490,7 +2490,7 @@ class StructuralNavigation:
# within a document.
#
listDesc = _("Displays a list of combo boxes.")
- bindings["list"] = ["c", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["c", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _comboBoxCriteria(self, collection, arg=None):
@@ -2609,7 +2609,7 @@ class StructuralNavigation:
# within a document.
#
listDesc = _("Displays a list of entries.")
- bindings["list"] = ["e", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["e", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _entryCriteria(self, collection, arg=None):
@@ -2740,7 +2740,7 @@ class StructuralNavigation:
bindings["next"] = ["Tab", settings.ORCA_MODIFIER_MASK, nextDesc]
listDesc = _("Displays a list of form fields.")
- bindings["list"] = ["f", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["f", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _formFieldCriteria(self, collection, arg=None):
@@ -2873,7 +2873,7 @@ class StructuralNavigation:
# (e.g., <h1>) in a document as an alternative means of navigation.
#
listDesc = _("Displays a list of headings.")
- bindings["list"] = ["h", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["h", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
prevAtLevelBindings = []
nextAtLevelBindings = []
@@ -2900,7 +2900,7 @@ class StructuralNavigation:
#
listDesc = _("Displays a list of headings at level %d.") %i
listAtLevelBindings.append([str(i),
- settings.CTRL_ALT_MODIFIER_MASK,
+ settings.SHIFT_ALT_MODIFIER_MASK,
listDesc])
bindings["previousAtLevel"] = prevAtLevelBindings
@@ -3177,8 +3177,7 @@ class StructuralNavigation:
# lists in a document.
#
listDesc = _("Displays a list of lists.")
- # Ctrl + Alt + L conflicts with the lock shortcut.
- bindings["list"] = ["", settings.NO_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["l", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _listCriteria(self, collection, arg=None):
@@ -3320,7 +3319,7 @@ class StructuralNavigation:
# lists in a document.
#
listDesc = _("Displays a list of list items.")
- bindings["list"] = ["i", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["i", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _listItemCriteria(self, collection, arg=None):
@@ -3537,7 +3536,7 @@ class StructuralNavigation:
# Translators: this is for navigating among paragraphs in a document.
#
listDesc = _("Displays a list of paragraphs.")
- bindings["list"] = ["p", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["p", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _paragraphCriteria(self, collection, arg=None):
@@ -3653,7 +3652,7 @@ class StructuralNavigation:
# form within a document.
#
listDesc = _("Displays a list of radio buttons.")
- bindings["list"] = ["r", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["r", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _radioButtonCriteria(self, collection, arg=None):
@@ -4048,7 +4047,7 @@ class StructuralNavigation:
# document.
#
listDesc = _("Displays a list of unvisited links.")
- bindings["list"] = ["u", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["u", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
@@ -4174,7 +4173,7 @@ class StructuralNavigation:
# document.
#
listDesc = _("Displays a list of visited links.")
- bindings["list"] = ["v", settings.CTRL_ALT_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["v", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
@@ -4281,7 +4280,7 @@ class StructuralNavigation:
bindings = {}
# Translators: this is for navigating among links in a document.
listDesc = _("Displays a list of links.")
- bindings["list"] = ["", settings.NO_MODIFIER_MASK, listDesc]
+ bindings["list"] = ["k", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _linkCriteria(self, collection, arg=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]