aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/keyboard-mediator.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-06 14:36:51 -0800
committerValerio Virgillito2012-02-06 14:36:51 -0800
commit191898aaa63b357b5709b94cd38e15a258a9d95f (patch)
tree7fa44f2ec5042b942f37151bbfb67f875680f040 /js/mediators/keyboard-mediator.js
parent08eafdff4ec25d34e2e76b386145a9fd122431dc (diff)
parent07e5839e0ec6da2eb71056ff18b90226af213eef (diff)
downloadninja-191898aaa63b357b5709b94cd38e15a258a9d95f.tar.gz
Merge branch 'master' into components
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rw-r--r--js/mediators/keyboard-mediator.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 144932c0..a1fdead3 100644
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -178,6 +178,12 @@ exports.KeyboardMediator = Montage.create(Component, {
178 return; 178 return;
179 } 179 }
180 180
181 if(evt.keyCode === Keyboard.H ) {
182 evt.preventDefault();
183 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[15]});
184 return;
185 }
186
181 if(evt.keyCode === Keyboard.Z ) { 187 if(evt.keyCode === Keyboard.Z ) {
182 evt.preventDefault(); 188 evt.preventDefault();
183 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[16]}); 189 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[16]});