From: Dan Brown Date: Sat, 20 Apr 2019 12:12:35 +0000 (+0100) Subject: Updated md drawing mngr shortcut to work on mac cmd key X-Git-Tag: v0.26.0~1^2~15 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/ed330f246cabcea503d808b14804bebf55c32d90 Updated md drawing mngr shortcut to work on mac cmd key Closes #1228 --- diff --git a/resources/assets/js/components/markdown-editor.js b/resources/assets/js/components/markdown-editor.js index 96cc1e6d1..55cf67813 100644 --- a/resources/assets/js/components/markdown-editor.js +++ b/resources/assets/js/components/markdown-editor.js @@ -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; }