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({
|
.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) {
|
||||||
|
|
Loading…
Reference in a new issue