aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/keyboard-mediator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-xjs/mediators/keyboard-mediator.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index bf436593..65dd34cd 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -169,6 +169,13 @@ exports.KeyboardMediator = Montage.create(Component, {
169 return; 169 return;
170 } 170 }
171 171
172 // Rotate Stage Tool is M
173 if(evt.keyCode === Keyboard.M ) {
174 evt.preventDefault();
175 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[13]});
176 return;
177 }
178
172 // Hand tool 179 // Hand tool
173 if(evt.keyCode === Keyboard.H ) { 180 if(evt.keyCode === Keyboard.H ) {
174 evt.preventDefault(); 181 evt.preventDefault();
@@ -177,7 +184,7 @@ exports.KeyboardMediator = Montage.create(Component, {
177 } 184 }
178 185
179 // Zoom tool 186 // Zoom tool
180 if(evt.keyCode === Keyboard.Z ) { 187 if((evt.keyCode === Keyboard.Z) && !(evt.ctrlKey || evt.metaKey) && !evt.shiftKey) {//ctrl or shift key not press with Z
181 evt.preventDefault(); 188 evt.preventDefault();
182 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]}); 189 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]});
183 return; 190 return;