Explicitly include '?' as a fallback key for keyboard shortcuts

(closes #5675)

This allows for a localized version of the key,
but iD will still respond to the '?'
This commit is contained in:
Bryan Housel
2019-01-07 11:39:12 -05:00
parent 826f66a91b
commit 4ed2858cc5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
"text": "shortcuts.browsing.help.help"
},
{
"shortcuts": ["shortcuts.toggle.key"],
"shortcuts": ["shortcuts.toggle.key", "?"],
"text": "shortcuts.browsing.help.keyboard"
},
{
+1 -1
View File
@@ -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();