From 1f2a7f6953977161797b1836e4d6959fe36439d8 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 17 May 2011 11:05:59 +0200 Subject: [PATCH] fix for F key when find is hidden --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 50008cf2..daffad71 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -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);