diff options
author | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
commit | abf78e2d7a97d295ce5a1c425fd359d47379137e (patch) | |
tree | d08c91bd2aef31e6325e0b499b2ffc390018bec6 /js/mediators/keyboard-mediator.js | |
parent | e80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff) | |
parent | e23708721a71ca4c71365f5f8e8ac7d6113926db (diff) | |
download | ninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x[-rw-r--r--] | js/mediators/keyboard-mediator.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index a1fdead3..e8a11ad8 100644..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 | ||