session: add mod+o shortcut to open a session file

This commit is contained in:
jean-emmanuel 2018-10-19 16:16:48 +02:00
parent bce85a392b
commit 9c0d536079
3 changed files with 7 additions and 0 deletions

View file

@ -13,6 +13,7 @@
- properties categories can now be folded
- added keyboard shortcut `F2` for editing the label quickly
- added keyboard shortcut `mod + s` for saving the session
- added keyboard shortcut `mod + o` for opening a session
- use `backspace` instead of `delete` for deleting widgets on MacOs
- added keyboard shortcut `mod + e` for enabling / disabling the editor
- added keyboard shortcuts `mod + arrows` for selecting widgets

View file

@ -53,6 +53,7 @@ The following shortcuts are always available:
|---|---|
| `mod + e` | enable/disable editor |
| `mod + s` | save session as... |
| `mod + o` | open a session file |
The following shortcuts are available only when the editor is enabled:

View file

@ -205,6 +205,11 @@ var Editor = class Editor {
sessionManager.save()
})
keyboardJS.bind('mod + o', (e)=>{
e.preventDefault()
sessionManager.browse()
})
keyboardJS.bind('mod + e', (e)=>{
e.preventDefault()
if (this.enabled) {