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({ .on({
mousedown: function(e) { mousedown: function(e) {
var $target = $(e.target); 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 // the following is needed to determine
// how to handle annotation input blur // how to handle annotation input blur
if (self.editing) { if (self.editing) {