fix for F key when find is hidden

This commit is contained in:
rolux 2011-05-17 11:05:59 +02:00
parent e10ab53030
commit 1f2a7f6953

View file

@ -145,7 +145,13 @@ Ox.VideoPlayer = function(options, self) {
},
key_f: function() {
// 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() {
goToNextResult(1);