SettingsPanel: allow Escape to close panel without clicking into the
panel first.