diff options
author | Valerio Virgillito | 2012-02-27 10:50:17 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-27 10:50:17 -0800 |
commit | a5d635a29de97a7daa93b9036d7a7dce48f07670 (patch) | |
tree | 0199d2ed21ab474b88302abf57cb8b14a200f4fa /js/mediators/keyboard-mediator.js | |
parent | d392751242f9a4aad4199c941fd416c19c422ee1 (diff) | |
parent | c65eb4b983e8020346cda4dc7bcb050cb1a410e1 (diff) | |
download | ninja-a5d635a29de97a7daa93b9036d7a7dce48f07670.tar.gz |
Merge branch 'FileIO-Build-Candidate' of https://github.com/joseeight/ninja-internal into integration-candidate
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 5b044f8a..443a18ac 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -207,7 +207,13 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
207 | 207 | ||
208 | // Check if cmd+s/ctrl+s for Save (Windows/Mac) | 208 | // Check if cmd+s/ctrl+s for Save (Windows/Mac) |
209 | if ((evt.keyCode == Keyboard.S) && (evt.ctrlKey || evt.metaKey) && !evt.shiftKey) { | 209 | if ((evt.keyCode == Keyboard.S) && (evt.ctrlKey || evt.metaKey) && !evt.shiftKey) { |
210 | NJevent("executeSave"); | 210 | try{ |
211 | NJevent("executeSave"); | ||
212 | } | ||
213 | catch(e){ | ||
214 | console.warn("Unable to save"); | ||
215 | console.log(e.stack); | ||
216 | } | ||
211 | evt.preventDefault(); | 217 | evt.preventDefault(); |
212 | return; | 218 | return; |
213 | } | 219 | } |