Fix for #1410: Do not set input focus if search is disabled (i.e. input is offscreen)

Now with disable_search_threshold support!