Explicitly set focus to search field.

This fixes #9981.
2 is a magic number so how do we arrive at this number?