Merge pull request #381 from MartinHN/pr/shortcut_toggle_editor
editor : add mod + e to toggle editor
This commit is contained in:
commit
4c6be20ae4
1 changed files with 9 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue