Skip to content

Commit

Permalink
session: add mod+o shortcut to open a session file
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-emmanuel committed Oct 19, 2018
1 parent 9e3615b commit b485e58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions resources/docs/editing-sessions.md
Expand Up @@ -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:

Expand Down
5 changes: 5 additions & 0 deletions src/browser/js/app/editor/index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit b485e58

Please sign in to comment.