diff options
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index 443a18ac..1667dca8 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -162,6 +162,13 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
162 | return; | 162 | return; |
163 | } | 163 | } |
164 | 164 | ||
165 | // Rotate Stage Tool is M | ||
166 | if(evt.keyCode === Keyboard.M ) { | ||
167 | evt.preventDefault(); | ||
168 | this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[13]}); | ||
169 | return; | ||
170 | } | ||
171 | |||
165 | // Hand tool | 172 | // Hand tool |
166 | if(evt.keyCode === Keyboard.H ) { | 173 | if(evt.keyCode === Keyboard.H ) { |
167 | evt.preventDefault(); | 174 | evt.preventDefault(); |
@@ -170,7 +177,7 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
170 | } | 177 | } |
171 | 178 | ||
172 | // Zoom tool | 179 | // Zoom tool |
173 | if(evt.keyCode === Keyboard.Z ) { | 180 | if((evt.keyCode === Keyboard.Z) && !(evt.ctrlKey || evt.metaKey) && !evt.shiftKey) {//ctrl or shift key not press with Z |
174 | evt.preventDefault(); | 181 | evt.preventDefault(); |
175 | this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]}); | 182 | this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]}); |
176 | return; | 183 | return; |