diff options
author | Jose Antonio Marquez Russo | 2012-02-27 14:28:59 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-02-27 14:28:59 -0800 |
commit | affdf784f3dae1febe279a214857e6fe3ba56db1 (patch) | |
tree | 5c352c198ed7404f3fe0a9c5915e1727d3003f9f /js/mediators/keyboard-mediator.js | |
parent | 7e63b5d0b6990b6c0ec0385d35534b91982ac672 (diff) | |
parent | 15d00c49b522aa471d1ccfbbd33f5c0e721eb89e (diff) | |
download | ninja-affdf784f3dae1febe279a214857e6fe3ba56db1.tar.gz |
Merge pull request #21 from ananyasen/FileIO
FileIO branch pull request
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index 443a18ac..62b514ee 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -170,7 +170,7 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
170 | } | 170 | } |
171 | 171 | ||
172 | // Zoom tool | 172 | // Zoom tool |
173 | if(evt.keyCode === Keyboard.Z ) { | 173 | if((evt.keyCode === Keyboard.Z) && !(evt.ctrlKey || evt.metaKey) && !evt.shiftKey) {//ctrl or shift key not press with Z |
174 | evt.preventDefault(); | 174 | evt.preventDefault(); |
175 | this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]}); | 175 | this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]}); |
176 | return; | 176 | return; |