From 95faa3e40ac327cfea7625ac466fa57f989baaea Mon Sep 17 00:00:00 2001 From: j Date: Sun, 9 Jul 2023 15:01:37 +0530 Subject: [PATCH] fix copy of annotations in editor view if focus is on annotation --- source/UI/js/Video/AnnotationFolder.js | 6 ++++-- source/UI/js/Video/AnnotationPanel.js | 3 ++- source/UI/js/Video/VideoAnnotationPanel.js | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/source/UI/js/Video/AnnotationFolder.js b/source/UI/js/Video/AnnotationFolder.js index f6fb3127..4b04dcd4 100644 --- a/source/UI/js/Video/AnnotationFolder.js +++ b/source/UI/js/Video/AnnotationFolder.js @@ -371,7 +371,8 @@ Ox.AnnotationFolder = function(options, self) { 'equal', 'e', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'shift_0', 'shift_equal', 'shift_g', 'shift_i', 'shift_minus', 'shift_o', - 'slash', 'space' + 'slash', 'space', + 'control_c', 'control_v', ].forEach(function(key) { key = 'key.' + key; self.$annotations.bindEvent(key, function() { @@ -401,7 +402,8 @@ Ox.AnnotationFolder = function(options, self) { 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'shift_0', 'shift_equal', 'shift_g', 'shift_i', 'shift_minus', 'shift_o', - 'slash', 'space' + 'slash', 'space', + 'control_c', 'control_v', ].forEach(function(key) { key = 'key_' + key; self.$annotations.bindEvent(key, function() { diff --git a/source/UI/js/Video/AnnotationPanel.js b/source/UI/js/Video/AnnotationPanel.js index 83036b77..e93ea671 100644 --- a/source/UI/js/Video/AnnotationPanel.js +++ b/source/UI/js/Video/AnnotationPanel.js @@ -457,7 +457,8 @@ Ox.AnnotationPanel = function(options, self) { 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'shift_0', 'shift_equal', 'shift_g', 'shift_i', 'shift_minus', 'shift_o', - 'slash', 'space' + 'slash', 'space', + 'control_c', 'control_v', ].forEach(function(key) { key = 'key.' + key; self.$folder[index].bindEvent(key, function() { diff --git a/source/UI/js/Video/VideoAnnotationPanel.js b/source/UI/js/Video/VideoAnnotationPanel.js index 04d7ce03..5ce19326 100644 --- a/source/UI/js/Video/VideoAnnotationPanel.js +++ b/source/UI/js/Video/VideoAnnotationPanel.js @@ -972,7 +972,8 @@ Ox.VideoAnnotationPanel = function(options, self) { 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'openbracket', 'p', 'shift_0', 'shift_equal', 'shift_g', 'shift_i', 'shift_minus', 'shift_o', - 'slash', 'space' + 'slash', 'space', + 'control_c', 'control_v', ].forEach(function(key) { key = 'key.' + key; self.$annotationPanel.bindEvent(key, function() {