Hacker News new | ask | show | jobs
by jdiff 622 days ago
Escape might be more intuitive but it's not more discoverable. Shift is used often when inputting information, and the mentioned visual feedback give this behavior an opportunity to be discovered.

Having said that, regardless of the key the guidelines on using this pattern say that you should explicitly inform the user of the feature before they first encounter it.

https://design-system.service.gov.uk/patterns/exit-a-page-qu...