HistoryWindow: Close search results first
This checks if the search results scrolled window is visible when pressing Esc. It will first hide the scrolled window, and only then close the history window.
This checks if the search results scrolled window is visible when pressing Esc. It will first hide the scrolled window, and only then close the history window.