fix for F key when find is hidden
This commit is contained in:
parent
e10ab53030
commit
1f2a7f6953
1 changed files with 7 additions and 1 deletions
|
@ -145,7 +145,13 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
},
|
},
|
||||||
key_f: function() {
|
key_f: function() {
|
||||||
// need timeout so the "f" doesn't appear in the input field
|
// need timeout so the "f" doesn't appear in the input field
|
||||||
setTimeout(self.$findInput.focusInput, 0);
|
setTimeout(function() {
|
||||||
|
if (self.$find.is(':hidden')) {
|
||||||
|
toggleFind();
|
||||||
|
} else {
|
||||||
|
self.$findInput.focusInput();
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
},
|
},
|
||||||
key_g: function() {
|
key_g: function() {
|
||||||
goToNextResult(1);
|
goToNextResult(1);
|
||||||
|
|
Loading…
Reference in a new issue