]> BookStack Code Mirror - bookstack/commitdiff
Updated md drawing mngr shortcut to work on mac cmd key
authorDan Brown <redacted>
Sat, 20 Apr 2019 12:12:35 +0000 (13:12 +0100)
committerDan Brown <redacted>
Sat, 20 Apr 2019 12:12:35 +0000 (13:12 +0100)
Closes #1228

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;
             }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.