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 196c8a4b..cce053bc 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -50,6 +50,7 @@ var Keyboard = exports.Keyboard = {
50 X:88, 50 X:88,
51 Y:89, 51 Y:89,
52 Z:90, 52 Z:90,
53 F6:117,
53 PLUS:187, 54 PLUS:187,
54 MINUS:189 55 MINUS:189
55}; 56};
@@ -215,6 +216,12 @@ exports.KeyboardMediator = Montage.create(Component, {
215 return; 216 return;
216 } 217 }
217 218
219 // F6 keyboard shortcut to add a keyframe to the timeline
220 if (evt.keyCode == Keyboard.F6) {
221 this.application.ninja.timeline.handleKeyframeShortcut();
222 return;
223 }
224
218 // Check if cmd+a/ctrl+a for Select All 225 // Check if cmd+a/ctrl+a for Select All
219 if((evt.keyCode == Keyboard.A) && (evt.ctrlKey || evt.metaKey)) { 226 if((evt.keyCode == Keyboard.A) && (evt.ctrlKey || evt.metaKey)) {
220 NJevent("selectAll"); 227 NJevent("selectAll");