aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-17 15:22:23 -0800
committerJose Antonio Marquez2012-02-17 15:22:23 -0800
commitd47c4c0f6053fb8390526f32c2ee08dee0bdec20 (patch)
tree4329cfb5653f8be117de13567f46ed5d32c6c2d2 /js/mediators
parent041abe1f27378f095d3a6d5584559463959e0787 (diff)
downloadninja-d47c4c0f6053fb8390526f32c2ee08dee0bdec20.tar.gz
Chrome Preview
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index a1fdead3..e8a11ad8 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -201,6 +201,12 @@ exports.KeyboardMediator = Montage.create(Component, {
201 if(this.application.ninja.toolsData) this.application.ninja.toolsData.selectedToolInstance.HandleEscape(evt); 201 if(this.application.ninja.toolsData) this.application.ninja.toolsData.selectedToolInstance.HandleEscape(evt);
202 //menuViewManagerModule.MenuViewManager.closeMenu("mainMenuBar"); 202 //menuViewManagerModule.MenuViewManager.closeMenu("mainMenuBar");
203 } 203 }
204
205 // Check if cmd+a/ctrl+a for Select All
206 if((evt.keyCode == Keyboard.ENTER) && (evt.ctrlKey || evt.metaKey)) {
207 this.application.ninja.executeChromePreview();
208 return;
209 }
204 210
205 if(this.application.ninja.toolsData) this.application.ninja.toolsData.selectedToolInstance.HandleKeyPress(evt); 211 if(this.application.ninja.toolsData) this.application.ninja.toolsData.selectedToolInstance.HandleKeyPress(evt);
206 212