Fixed #34: 'esc' now closes the popup when the cursor is active and no search input