To avoid the impact for this, shouldn't this only be wrapping the `search.focus` call and not the entire event handler?