register colorpicker command on first use
This commit is contained in:
parent
64cb128b06
commit
612b21c732
|
@ -49,6 +49,7 @@ window.initColorpicker = () => {
|
|||
}
|
||||
|
||||
function registerHotkey(id, hotkey) {
|
||||
CodeMirror.commands.colorpicker = invokeColorpicker;
|
||||
const extraKeys = CodeMirror.defaults.extraKeys;
|
||||
for (const key in extraKeys) {
|
||||
if (extraKeys[key] === 'colorpicker') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user