aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJohn Mayhew2012-05-16 14:37:10 -0700
committerJohn Mayhew2012-05-16 14:37:10 -0700
commit26c4d00b3e5d39c1c313d48433abebd06f386a85 (patch)
tree01be4d0fe4c96de8270411a32bb76378769d5b2d /js/mediators
parent67e39072da76ac79955e8c2c001e17b01311d313 (diff)
downloadninja-26c4d00b3e5d39c1c313d48433abebd06f386a85.tar.gz
fixed bug with keyboard shortcut for fill/ink tool
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 665e3ce7..029c0916 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -172,11 +172,13 @@ exports.KeyboardMediator = Montage.create(Component, {
172 if(evt.keyCode === Keyboard.K ) { 172 if(evt.keyCode === Keyboard.K ) {
173 evt.preventDefault(); 173 evt.preventDefault();
174 if(this.application.ninja.toolsData.selectedTool.id === "FillTool") { 174 if(this.application.ninja.toolsData.selectedTool.id === "FillTool") {
175 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.inkBottleToolIndex] });
176 } else if(this.application.ninja.toolsData.selectedTool.id === "InkBottleTool") {
175 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.fillToolIndex] }); 177 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.fillToolIndex] });
176 } else { 178 } else {
177 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.inkBottleToolIndex] }); 179 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.fillToolIndex] });
178 } 180 }
179 return; 181 return;
180 } 182 }
181 183
182 // Rotate Stage Tool is M 184 // Rotate Stage Tool is M