show Ctrl-Pause hotkey in keymap info using a dummy command

This commit is contained in:
tophf 2017-12-24 11:20:37 +03:00
parent 8decffc6b5
commit 306b21b75e

View File

@ -29,7 +29,10 @@
// independent of current keyMap // independent of current keyMap
'Alt-Enter': 'toggleStyle', 'Alt-Enter': 'toggleStyle',
'Alt-PageDown': 'nextEditor', 'Alt-PageDown': 'nextEditor',
'Alt-PageUp': 'prevEditor' 'Alt-PageUp': 'prevEditor',
// show the hotkey in keymap info popup by adding a dummy command
// TODO: implement as a normal command when CodeMirror is fixed
'Ctrl-Pause': 'toggleEditorFocus',
}), }),
maxHighlightLength: 100e3, maxHighlightLength: 100e3,
configureMouse: (cm, repeat) => repeat === 'double' ? {unit: selectTokenOnDoubleclick} : {}, configureMouse: (cm, repeat) => repeat === 'double' ? {unit: selectTokenOnDoubleclick} : {},