Search field handles focus events better