diff --git a/edit/colorpicker-helper.js b/edit/colorpicker-helper.js index 66f51e17..66c7d4e6 100644 --- a/edit/colorpicker-helper.js +++ b/edit/colorpicker-helper.js @@ -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') {