DEV Community

Discussion on: The escape key; just a vim need?

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn • Edited

Esc is really important for keyboard-only navigation of the internet, as well as some desktop apps.

Hitting Esc when you have an input, button, link, or similar element focused on a web page will defocus that item and reset the tab index. You can easily try this here on DEV, click in the search box at the top, then hit Esc and the search box will lose focus (and if you hit tab, it will (usually) focus something other than the search box). This is important because it lets someone who is interacting with the web page with only the keyboard reset the tab index quickly and efficiently. This is where most of the criticism for the Mac came from, as they're generally otherwise one of the most accessibility friendly platforms out there.

In addition to this, a lot of video games use Esc, often to pause the game, bring up a menu of some sort, drop out of a text chat input (in much the same way that web pages handle it), or sometimes some combination of those.