clicking inside in/out input element should not move focus to editor, fixes #3032
This commit is contained in:
parent
21c94c00a9
commit
a579f47a27
2 changed files with 8 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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') {
|
||||
|
||||
|
|
Loading…
Reference in a new issue