inspector: hitting ctrl+s while editing a property will submit the change before saving

This commit is contained in:
bordun 2021-02-06 12:52:01 +01:00
parent 419cb7b3ab
commit 491c0ec687
2 changed files with 8 additions and 1 deletions

View file

@ -7,13 +7,16 @@
- input: submit content when leaving focus, not only when hitting `enter` or `tab` (`esc` still cancels)
- midi: prevent midi bridge from stopping when an error occurs; provide meaningfull errors when connection fails
- editor
- inspector: hitting ctrl+s while editing a property will submit the change before saving
- ui
- hide the console toggle button when the bottom panel is minimized and the editor is disabled
- widgets
- file: add `mode` property, for choosing between `open` and `save` modes
- switch: add `flip` mode
## 1.8.3
- bug fixes

View file

@ -93,6 +93,10 @@ var SessionManager = class SessionManager {
if (path) this.setSessionPath(path)
if (editor.inspector.focusedInput) {
editor.inspector.focusedInput.blur()
}
if (!this.sessionPath) return this.saveAs()
ipc.send('sessionSave', {