diff options
author | Valerio Virgillito | 2012-02-20 15:40:04 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-20 15:40:04 -0800 |
commit | f6811b8b7e86bcae16f9278b5a7cfc1ea94e3909 (patch) | |
tree | 7d12d3aca26e15fac2072498d42e2f7478f72719 /js/mediators/keyboard-mediator.js | |
parent | 7ec06098dcfa969017b73b91a1eec810d05775f8 (diff) | |
parent | bd7bc833895391e4974b8746f31f63ba70689df3 (diff) | |
download | ninja-f6811b8b7e86bcae16f9278b5a7cfc1ea94e3909.tar.gz |
Merge branch 'refs/heads/master' into nested-selection
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x | 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 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 | ||