diff options
author | Valerio Virgillito | 2012-06-06 14:37:04 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-06 14:37:04 -0700 |
commit | bc7ca741f8c8adcb5c5919af6f808a20c37ea5d7 (patch) | |
tree | 0e4cf90f47937e7d718d82da1a0d0dab5ac5f136 /js/mediators | |
parent | fb684fb27c2cef04251655d86e55eceed9da3132 (diff) | |
parent | e14ce28b5c8858af75fbf2003c8f1b854daa7e35 (diff) | |
download | ninja-bc7ca741f8c8adcb5c5919af6f808a20c37ea5d7.tar.gz |
Merge branch 'refs/heads/master' into element-model-fixes
Conflicts:
js/document/models/html.js
js/document/views/design.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/mediators')
-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 e2e8e937..4fd4bd4c 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -143,6 +143,13 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
143 | return; | 143 | return; |
144 | } | 144 | } |
145 | 145 | ||
146 | // shortcut for Brush tool is B | ||
147 | if (evt.keyCode === Keyboard.B){ | ||
148 | evt.preventDefault(); | ||
149 | this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.brushToolIndex] }); | ||
150 | return; | ||
151 | } | ||
152 | |||
146 | // Shortcut for Rectangle Tool is R | 153 | // Shortcut for Rectangle Tool is R |
147 | // unless the user is pressing the command key. | 154 | // unless the user is pressing the command key. |
148 | // If the user is pressing the command key, they want to refresh the browser. | 155 | // If the user is pressing the command key, they want to refresh the browser. |