aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-28 14:55:17 -0800
committerValerio Virgillito2012-02-28 14:55:17 -0800
commit676b4e2d7091ac63ce06f51be686b902b940bfff (patch)
tree7f2f553923518c0f7ba4a0e4c5caa94270435c20 /js/mediators
parentb0b4d6492d6ddd3b7ab39c2f4d1c01b8e9bacfb6 (diff)
parentf2ab6999a9fdaa18056fb5a148ef1bcaefb7d854 (diff)
downloadninja-676b4e2d7091ac63ce06f51be686b902b940bfff.tar.gz
Merge pull request #79 from pushkarjoshi/pentool
Pentool
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/keyboard-mediator.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 1667dca8..65dd34cd 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -136,6 +136,13 @@ exports.KeyboardMediator = Montage.create(Component, {
136 return; 136 return;
137 } 137 }
138 138
139 // shortcut for Pen tool is P
140 if (evt.keyCode === Keyboard.P){
141 evt.preventDefault();
142 this.application.ninja.handleSelectTool({"detail": this.application.ninja.toolsData.defaultToolsData[5]});
143 return;
144 }
145
139 // Shortcut for Rectangle Tool is R 146 // Shortcut for Rectangle Tool is R
140 // unless the user is pressing the command key. 147 // unless the user is pressing the command key.
141 // If the user is pressing the command key, they want to refresh the browser. 148 // If the user is pressing the command key, they want to refresh the browser.