From 04f206173530b6efde16b934b1f959b255d18441 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Fri, 22 Jun 2012 01:33:58 -0700 Subject: FIx - can't delete keyframes F5 now deletes the selected keyframe Signed-off-by: Jonathan Duran --- js/mediators/keyboard-mediator.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'js/mediators') diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index cce053bc..f0afff13 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js @@ -50,6 +50,7 @@ var Keyboard = exports.Keyboard = { X:88, Y:89, Z:90, + F5:116, F6:117, PLUS:187, MINUS:189 @@ -218,7 +219,11 @@ exports.KeyboardMediator = Montage.create(Component, { // F6 keyboard shortcut to add a keyframe to the timeline if (evt.keyCode == Keyboard.F6) { - this.application.ninja.timeline.handleKeyframeShortcut(); + this.application.ninja.timeline.handleKeyframeShortcut("insert"); + return; + } + if (evt.keyCode == Keyboard.F5) { + this.application.ninja.timeline.handleKeyframeShortcut("remove"); return; } -- cgit v1.2.3