Merge branch 'pr/shortcut_toggle_editor'

This commit is contained in:
Martin Hermant 2018-10-10 08:56:48 +02:00
commit a24fa9415f
No known key found for this signature in database
GPG key ID: FA123D713AB2A87C

View file

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