From 74d4c16e3ae1a414514f3373a8b2249342523b92 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 13 Jul 2013 21:05:04 +0000 Subject: [PATCH] video editor: trigger copy events --- source/Ox.UI/js/Video/VideoEditor.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/Ox.UI/js/Video/VideoEditor.js b/source/Ox.UI/js/Video/VideoEditor.js index 6ef43c14..10b2cd34 100644 --- a/source/Ox.UI/js/Video/VideoEditor.js +++ b/source/Ox.UI/js/Video/VideoEditor.js @@ -151,6 +151,13 @@ Ox.VideoEditor = function(options, self) { key_comma: function() { movePositionTo('cut', -1); }, + key_control_c: function() { + that.triggerEvent('copy', [{ + annotation: self.options.selected, + 'in': self.options['in'], + out: self.options.out + }]); + }, key_delete: function() { self.$annotationPanel.removeItem(true); }, @@ -216,6 +223,13 @@ Ox.VideoEditor = function(options, self) { key_shift_0: function() { movePositionBy(-self.options.position); }, + key_shift_control_c: function() { + that.triggerEvent('copyadd', [{ + annotation: self.options.selected, + 'in': self.options['in'], + out: self.options.out + }]); + }, key_shift_down: function() { movePositionBy(self.options.duration); },