editor: added keyboard shortcut mod + s for saving the session (#373)

This commit is contained in:
jean-emmanuel 2018-10-08 22:50:30 +02:00
parent 66a27914c0
commit 2a9eb2584e
3 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,7 @@
- removed widget deletion confirmation popup
- properties categories can now be folded
- added keyboard shortcut `F2` for editing the label quickly
- added keyboard shortcut `mod + s` for saving the session
## 0.37.4

View file

@ -57,6 +57,8 @@ When holding the `ctrl` key (or `command` on Mac), multiple widgets can be selec
| Shortcut | Description |
|---|---|
| `mod + s` | save session as... |
| `f2` | edit selected widget's label |
| `mod + z` | undo |
| `mod + y / mod + shift + z` | redo |
| `delete` | delete selected widgets |

View file

@ -131,6 +131,11 @@ var Editor = class Editor {
})
keyboardJS.bind('mod + s', (e)=>{
sessionManager.save()
})
}
enable() {