From 296f707aefe8e14bfce3252fe19c35bb50db4dbb Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Fri, 2 Nov 2012 12:00:31 -0400 Subject: [PATCH] Blur search buttons before hiding them, so they don't interfere with hotkeys. We currently disable hotkeys if the focus is on a textbox or button. Hidden buttons can still be in focus, so blur the search buttons before hiding them. (imported from commit 5fdab34ad9931ea5ea2ad1827b36dfe4c02d8797) --- zephyr/static/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index d4828739e4..533cbb1b87 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -129,7 +129,7 @@ function clear_search() { $('#search').val('').width("610px"); $("#search_arrows").removeClass("input-append"); $("#search_up, #search_down").removeAttr("disabled"); - $('.search_button').hide(); + $('.search_button').blur().hide(); clear_search_cache(); }