Escape key

The keyboard key that, by convention, closes the topmost overlay such as a dialog, menu, popover or tooltip.

In more detail

Every overlay should close on Escape and, where it took focus, return focus to its trigger. It is also the required way out of a focus trap.

Related terms

Taught in

References