aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-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 4fd4bd4c..d1f8e221 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};
@@ -210,6 +211,12 @@ exports.KeyboardMediator = Montage.create(Component, {
210 return; 211 return;
211 } 212 }
212 213
214 // F6 keyboard shortcut to add a keyframe to the timeline
215 if (evt.keyCode == Keyboard.F6) {
216 this.application.ninja.timeline.handleKeyframeShortcut();
217 return;
218 }
219
213 // Check if cmd+a/ctrl+a for Select All 220 // Check if cmd+a/ctrl+a for Select All
214 if((evt.keyCode == Keyboard.A) && (evt.ctrlKey || evt.metaKey)) { 221 if((evt.keyCode == Keyboard.A) && (evt.ctrlKey || evt.metaKey)) {
215 NJevent("selectAll"); 222 NJevent("selectAll");