Skip to content

Commit

Permalink
Explicitly include '?' as a fallback key for keyboard shortcuts
Browse files Browse the repository at this point in the history
(closes #5675)

This allows for a localized version of the key,
but iD will still respond to the '?'
  • Loading branch information
bhousel committed Jan 7, 2019
1 parent 826f66a commit 4ed2858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/shortcuts.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"text": "shortcuts.browsing.help.help"
},
{
"shortcuts": ["shortcuts.toggle.key"],
"shortcuts": ["shortcuts.toggle.key", "?"],
"text": "shortcuts.browsing.help.keyboard"
},
{
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function uiShortcuts(context) {


context.keybinding()
.on(t('shortcuts.toggle.key'), function () {
.on([t('shortcuts.toggle.key'), '?'], function () {
if (d3_selectAll('.modal-shortcuts').size()) { // already showing
if (_modalSelection) {
_modalSelection.close();
Expand Down

0 comments on commit 4ed2858

Please sign in to comment.