aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorAnanya Sen2012-02-24 15:30:55 -0800
committerAnanya Sen2012-02-24 15:30:55 -0800
commitb056b4bef5982466d80d72e5cbb31e63087990e1 (patch)
tree30f95ff34a3664eed8d036ec57627647c660390a /js/mediators
parent85d59d57ea556b114c5cad9b2ec67ccc27119380 (diff)
downloadninja-b056b4bef5982466d80d72e5cbb31e63087990e1.tar.gz
- added closeDocument event for timeline
- minor bug fixes Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index a4bf9baa..f05d3382 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 }