When ESC is pressed in search (whether global or local in current file) the focus is lost. It would be a better experience if it redirected the focus to the currently opened note. Either to matched string or to last caret position if no match exists.