Updated md drawing mngr shortcut to work on mac cmd key

Closes #1228
This commit is contained in:
Dan Brown 2019-04-20 13:12:35 +01:00
parent 6c66a8935a
commit ed330f246c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View 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;
}