diff options
author | Jose Antonio Marquez | 2012-06-21 09:55:19 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-21 09:55:19 -0700 |
commit | bf6bed611714053aabc0d38978bddd62873d04aa (patch) | |
tree | f648fa7842f3dc6011da08aaab0bedb445d43b58 /js/mediators/keyboard-mediator.js | |
parent | 54b15b3c39835ea999d9ddd8038a5531630e266d (diff) | |
parent | c8fc6d15e1570e89243abe527cd149e354f7e11f (diff) | |
download | ninja-bf6bed611714053aabc0d38978bddd62873d04aa.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js/mediators/keyboard-mediator.js')
-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 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"); |