From 6f1ef4cffd50ee0f9c1533e4594275f000a4a9d9 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 9 Jul 2013 17:59:13 +0000 Subject: [PATCH] fix #1141 (when pressing ctrl+f, the current find value should get selected) --- static/js/pandora/mainMenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/mainMenu.js b/static/js/pandora/mainMenu.js index 749cfb71..028583cb 100644 --- a/static/js/pandora/mainMenu.js +++ b/static/js/pandora/mainMenu.js @@ -454,7 +454,9 @@ pandora.ui.mainMenu = function() { key_control_f: function() { if (!pandora.hasDialogOrScreen()) { if (pandora.user.ui._findState.key != 'advanced') { - pandora.$ui.findInput.focusInput(true); + setTimeout(function() { + pandora.$ui.findInput.focusInput(true); + }, 25); } else { pandora.$ui.filterDialog = pandora.ui.filterDialog().open(); }