diff options
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 029c0916..5d5537d5 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js | |||
@@ -142,6 +142,13 @@ exports.KeyboardMediator = Montage.create(Component, { | |||
142 | return; | 142 | return; |
143 | } | 143 | } |
144 | 144 | ||
145 | // shortcut for Brush tool is B | ||
146 | if (evt.keyCode === Keyboard.B){ | ||
147 | evt.preventDefault(); | ||
148 | this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.brushToolIndex] }); | ||
149 | return; | ||
150 | } | ||
151 | |||
145 | // Shortcut for Rectangle Tool is R | 152 | // Shortcut for Rectangle Tool is R |
146 | // unless the user is pressing the command key. | 153 | // unless the user is pressing the command key. |
147 | // If the user is pressing the command key, they want to refresh the browser. | 154 | // If the user is pressing the command key, they want to refresh the browser. |