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)
This commit is contained in:
Jessica McKellar 2012-11-02 12:00:31 -04:00
parent bd822bebcd
commit 296f707aef

View File

@ -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();
}