Mac: Make <ESC> close the settings dialog again