diff options
author | Jonathan Duran | 2012-06-15 00:28:24 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-15 00:28:24 -0700 |
commit | 85dfdc9d46847d5fdd1b6fc6aaf35e93b09e9935 (patch) | |
tree | 6b73c6854b8b853646e49c10679178c26228b815 /js/mediators | |
parent | f25c0450a5f75ee6937147c361aa95d3305a7e6a (diff) | |
download | ninja-85dfdc9d46847d5fdd1b6fc6aaf35e93b09e9935.tar.gz |
F6 support for keyframes
Signed-off-by: Jonathan Duran <jduran@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 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"); |