clicking inside in/out input element should not move focus to editor, fixes #3032

This commit is contained in:
j 2017-07-08 11:31:12 +02:00
parent 21c94c00a9
commit a579f47a27
2 changed files with 8 additions and 2 deletions

View file

@ -373,7 +373,13 @@ Ox.VideoAnnotationPanel = function(options, self) {
.on({
mousedown: function(e) {
var $target = $(e.target);
!$target.is('.OxPosition') && !$target.is('input') && that.gainFocus();
if (!$target.is('.OxPosition') && !$target.is('input')) {
that.gainFocus();
}
// ignore mousedown inside a focused input element
if ($target.is('.OxKeyboardFocus')) {
return;
}
// the following is needed to determine
// how to handle annotation input blur
if (self.editing) {

View file

@ -891,7 +891,7 @@ Ox.VideoPlayer = function(options, self) {
self.$positionInput.children('input').css({
width: (self.positionWidth - 6) + 'px',
fontSize: '9px'
});
});
} else if (control == 'previous') {