fix copy of annotations in editor view if focus is on annotation

This commit is contained in:
j 2023-07-09 15:01:37 +05:30
parent 8a374360fa
commit 95faa3e40a
3 changed files with 8 additions and 4 deletions

View file

@ -371,7 +371,8 @@ Ox.AnnotationFolder = function(options, self) {
'equal', 'e', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'equal', 'e', 'f', 'g', 'h', 'i', 'minus', 'n', 'o',
'openbracket', 'p', 'shift_0', 'shift_equal', 'openbracket', 'p', 'shift_0', 'shift_equal',
'shift_g', 'shift_i', 'shift_minus', 'shift_o', 'shift_g', 'shift_i', 'shift_minus', 'shift_o',
'slash', 'space' 'slash', 'space',
'control_c', 'control_v',
].forEach(function(key) { ].forEach(function(key) {
key = 'key.' + key; key = 'key.' + key;
self.$annotations.bindEvent(key, function() { self.$annotations.bindEvent(key, function() {
@ -401,7 +402,8 @@ Ox.AnnotationFolder = function(options, self) {
'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o',
'openbracket', 'p', 'shift_0', 'shift_equal', 'openbracket', 'p', 'shift_0', 'shift_equal',
'shift_g', 'shift_i', 'shift_minus', 'shift_o', 'shift_g', 'shift_i', 'shift_minus', 'shift_o',
'slash', 'space' 'slash', 'space',
'control_c', 'control_v',
].forEach(function(key) { ].forEach(function(key) {
key = 'key_' + key; key = 'key_' + key;
self.$annotations.bindEvent(key, function() { self.$annotations.bindEvent(key, function() {

View file

@ -457,7 +457,8 @@ Ox.AnnotationPanel = function(options, self) {
'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o',
'openbracket', 'p', 'shift_0', 'shift_equal', 'openbracket', 'p', 'shift_0', 'shift_equal',
'shift_g', 'shift_i', 'shift_minus', 'shift_o', 'shift_g', 'shift_i', 'shift_minus', 'shift_o',
'slash', 'space' 'slash', 'space',
'control_c', 'control_v',
].forEach(function(key) { ].forEach(function(key) {
key = 'key.' + key; key = 'key.' + key;
self.$folder[index].bindEvent(key, function() { self.$folder[index].bindEvent(key, function() {

View file

@ -972,7 +972,8 @@ Ox.VideoAnnotationPanel = function(options, self) {
'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o', 'equal', 'f', 'g', 'h', 'i', 'minus', 'n', 'o',
'openbracket', 'p', 'shift_0', 'shift_equal', 'openbracket', 'p', 'shift_0', 'shift_equal',
'shift_g', 'shift_i', 'shift_minus', 'shift_o', 'shift_g', 'shift_i', 'shift_minus', 'shift_o',
'slash', 'space' 'slash', 'space',
'control_c', 'control_v',
].forEach(function(key) { ].forEach(function(key) {
key = 'key.' + key; key = 'key.' + key;
self.$annotationPanel.bindEvent(key, function() { self.$annotationPanel.bindEvent(key, function() {