diff options
author | Valerio Virgillito | 2012-02-06 14:36:51 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-06 14:36:51 -0800 |
commit | 191898aaa63b357b5709b94cd38e15a258a9d95f (patch) | |
tree | 7fa44f2ec5042b942f37151bbfb67f875680f040 /js/mediators/keyboard-mediator.js | |
parent | 08eafdff4ec25d34e2e76b386145a9fd122431dc (diff) | |
parent | 07e5839e0ec6da2eb71056ff18b90226af213eef (diff) | |
download | ninja-191898aaa63b357b5709b94cd38e15a258a9d95f.tar.gz |
Merge branch 'master' into components
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rw-r--r-- | js/mediators/keyboard-mediator.js | 6 |
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]}); |