aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/keyboard-mediator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-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 e3f41b3f..196c8a4b 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -148,6 +148,13 @@ exports.KeyboardMediator = Montage.create(Component, {
148 return; 148 return;
149 } 149 }
150 150
151 // shortcut for Brush tool is B
152 if (evt.keyCode === Keyboard.B){
153 evt.preventDefault();
154 this.application.ninja.handleSelectTool({ "detail": this.application.ninja.toolsData.defaultToolsData[this.application.ninja.toolsData.brushToolIndex] });
155 return;
156 }
157
151 // Shortcut for Rectangle Tool is R 158 // Shortcut for Rectangle Tool is R
152 // unless the user is pressing the command key. 159 // unless the user is pressing the command key.
153 // If the user is pressing the command key, they want to refresh the browser. 160 // If the user is pressing the command key, they want to refresh the browser.