diff options
author | Valerio Virgillito | 2012-02-28 15:08:48 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-28 15:08:48 -0800 |
commit | 8e370cc72aa85de594a5d55ae89947a70af414ca (patch) | |
tree | 1b21cfbac06278e90fe2f7ff38234d75247df96b /js/mediators/keyboard-mediator.js | |
parent | 8de40029442333114d81ac30a8886a995a3dc56b (diff) | |
parent | 676b4e2d7091ac63ce06f51be686b902b940bfff (diff) | |
download | ninja-8e370cc72aa85de594a5d55ae89947a70af414ca.tar.gz |
Merge branch 'integration-candidate' of github.com:Motorola-Mobility/ninja-internal into integration-candidate
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-rwxr-xr-x | js/mediators/keyboard-mediator.js | 7 |
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. |