]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/markdown-editor.js
Merge branch 'fix/registraion-form-validation' of git://github.com/cw1998/BookStack...
[bookstack] / resources / assets / js / components / markdown-editor.js
index 96cc1e6d10d228a9e8047d53da4e8969abc07238..55cf67813e0d51e156a533e073ca337f94eff1c6 100644 (file)
@@ -64,7 +64,7 @@ class MarkdownEditor {
             let action = button.getAttribute('data-action');
             if (action === 'insertImage') this.actionInsertImage();
             if (action === 'insertLink') this.actionShowLinkSelector();
-            if (action === 'insertDrawing' && event.ctrlKey) {
+            if (action === 'insertDrawing' && (event.ctrlKey || event.metaKey)) {
                 this.actionShowImageManager();
                 return;
             }