diff options
author | hwc487 | 2012-02-03 15:24:23 -0800 |
---|---|---|
committer | hwc487 | 2012-02-03 15:24:23 -0800 |
commit | b8092d97bf4488cc733bd39365a7a0b0e0f554b2 (patch) | |
tree | af36c056294e4b7ad5d67d8f4914b08c78d48fac /js/mediators/keyboard-mediator.js | |
parent | 3d5b5f7c5efb25b5e605d5d120b57f2dde33fd23 (diff) | |
parent | 4b8eb7442b41db7e06b639ba4a31bb7664209159 (diff) | |
download | ninja-b8092d97bf4488cc733bd39365a7a0b0e0f554b2.tar.gz |
Merge branch 'ToolFixes' of github.com:mqg734/ninja-internal into working
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]}); |