aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-17 11:08:42 -0700
committerValerio Virgillito2012-04-17 11:08:42 -0700
commitebd9ba757657c159bbed19193f4ff0fd0f57e420 (patch)
treeae0c322a5948683282713d38aed42a7bfc78fc0f /js/mediators
parent2292a35f545a161c0d19b26a8640b9421afce792 (diff)
parentfe2ea22983e29b1e99dabe883e773c4949d3d6e2 (diff)
downloadninja-ebd9ba757657c159bbed19193f4ff0fd0f57e420.tar.gz
Merge pull request #164 from mqg734/ToolTipFixes
IKNinja-1022 - PaintBucket tooltip is incorrect. Also added kb shortcuts for PaintBucket, InkBottle and Eyedropper tools.
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 82596693..79967799 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -168,6 +168,24 @@ exports.KeyboardMediator = Montage.create(Component, {
168 return; 168 return;
169 } 169 }
170 170
171 // Paint Bucket Tool and Ink Bottle tools share keyboard shortcut K
172 if(evt.keyCode === Keyboard.K ) {
173 evt.preventDefault();
174 if(this.application.ninja.toolsData.selectedTool.id === "FillTool") {
175 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[11]});
176 } else {
177 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[10]});
178 }
179 return;
180 }
181
182 // Shortcut for Eyedropper Tool is I
183 if(evt.keyCode === Keyboard.I ) {
184 evt.preventDefault();
185 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[12]});
186 return;
187 }
188
171 // Rotate Stage Tool is M 189 // Rotate Stage Tool is M
172 if(evt.keyCode === Keyboard.M ) { 190 if(evt.keyCode === Keyboard.M ) {
173 evt.preventDefault(); 191 evt.preventDefault();