fix #2489; use new focus controller method
This commit is contained in:
parent
06c21e0a46
commit
2a6ea64eed
1 changed files with 7 additions and 7 deletions
|
@ -186,7 +186,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.options.fullscreen = !self.options.fullscreen;
|
||||
toggleFullscreen();
|
||||
},
|
||||
height: setSizes,
|
||||
height: function() {
|
||||
setSizes();
|
||||
},
|
||||
'in': function() {
|
||||
self.options.paused && setMarkers();
|
||||
self.$timeline && self.$timeline.options('in', self.options['in']);
|
||||
|
@ -234,7 +236,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
volume: function() {
|
||||
setVolume(self.options.volume);
|
||||
},
|
||||
width: setSizes
|
||||
width: function() {
|
||||
setSizes();
|
||||
}
|
||||
})
|
||||
.addClass('OxVideoPlayer');
|
||||
|
||||
|
@ -362,11 +366,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
} else {
|
||||
that.on({
|
||||
click: function() {
|
||||
var focused = Ox.Focus.focused();
|
||||
if (
|
||||
!focused
|
||||
|| !Ox.UI.elements[focused].is('.OxInput')
|
||||
) {
|
||||
if (!Ox.Focus.focusedElementIsInput()) {
|
||||
that.gainFocus();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue