diff options
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index a2589340..43098cba 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -214,7 +214,13 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
214 | 214 | ||
215 | // Check if cmd+s/ctrl+s for Save (Windows/Mac) | 215 | // Check if cmd+s/ctrl+s for Save (Windows/Mac) |
216 | if ((evt.keyCode == Keyboard.S) && (evt.ctrlKey || evt.metaKey) && !evt.shiftKey) { | 216 | if ((evt.keyCode == Keyboard.S) && (evt.ctrlKey || evt.metaKey) && !evt.shiftKey) { |
217 | NJevent("executeSave"); | 217 | try{ |
218 | NJevent("executeSave"); | ||
219 | } | ||
220 | catch(e){ | ||
221 | console.warn("Unable to save"); | ||
222 | console.log(e.stack); | ||
223 | } | ||
218 | evt.preventDefault(); | 224 | evt.preventDefault(); |
219 | return; | 225 | return; |
220 | } | 226 | } |