fixed switching documents while in search field
focus editor