Merge pull request #381 from MartinHN/pr/shortcut_toggle_editor

editor : add mod + e to toggle editor
This commit is contained in:
jean-emmanuel 2018-10-10 10:23:11 +02:00 • committed by GitHub
commit 4c6be20ae4

View file

@ -135,6 +135,15 @@ var Editor = class Editor {
sessionManager.save()
})
keyboardJS.bind('mod + e', (e)=>{
e.preventDefault()
if (this.enabled) {
this.disable()
} else {
this.enable()
}
})
}