]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
6c66a89
)
Updated md drawing mngr shortcut to work on mac cmd key
author
Dan Brown
<redacted>
Sat, 20 Apr 2019 12:12:35 +0000
(13:12 +0100)
committer
Dan Brown
<redacted>
Sat, 20 Apr 2019 12:12:35 +0000
(13:12 +0100)
Closes #1228
resources/assets/js/components/markdown-editor.js
patch
|
blob
|
history
diff --git
a/resources/assets/js/components/markdown-editor.js
b/resources/assets/js/components/markdown-editor.js
index 96cc1e6d10d228a9e8047d53da4e8969abc07238..55cf67813e0d51e156a533e073ca337f94eff1c6 100644
(file)
--- 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;
}
hide
Morty Proxy
This is a
proxified and sanitized
view of the page, visit
original site
.