aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-28 15:15:12 -0800
committerJose Antonio Marquez2012-02-28 15:15:12 -0800
commitda83f44b0ecf379b0950a88d1c378fbedb80e386 (patch)
treec294662148907b6d496afee3dea1c03f18491680 /js/mediators
parentb799b7cf3a422f407045c52a4c6a61756d1ea096 (diff)
parent676b4e2d7091ac63ce06f51be686b902b940bfff (diff)
downloadninja-da83f44b0ecf379b0950a88d1c378fbedb80e386.tar.gz
Merge branch 'refs/heads/integration-candidate' into FileIO-Build-Candidate
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 62b514ee..65dd34cd 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -136,6 +136,13 @@ exports.KeyboardMediator = Montage.create(Component, {
136 return; 136 return;
137 } 137 }
138 138
139 // shortcut for Pen tool is P
140 if (evt.keyCode === Keyboard.P){
141 evt.preventDefault();
142 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[5]});
143 return;
144 }
145
139 // Shortcut for Rectangle Tool is R 146 // Shortcut for Rectangle Tool is R
140 // unless the user is pressing the command key. 147 // unless the user is pressing the command key.
141 // If the user is pressing the command key, they want to refresh the browser. 148 // If the user is pressing the command key, they want to refresh the browser.
@@ -162,6 +169,13 @@ exports.KeyboardMediator = Montage.create(Component, {
162 return; 169 return;
163 } 170 }
164 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
165 // Hand tool 179 // Hand tool
166 if(evt.keyCode === Keyboard.H ) { 180 if(evt.keyCode === Keyboard.H ) {
167 evt.preventDefault(); 181 evt.preventDefault();