added proper focus handling to sample quicksearch plugin