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