DEV Community

Stephen Chiang
Stephen Chiang

Posted on

The escape key; just a vim need?

Lately I've been thinking about how I rarely use the esc key and now the new Mac has brought back physical escape keys due to previous criticisms...And I'm wondering...who besides vim users needs that escape key so frequently?

So please tell me, what are you using that escape key for?

Top comments (7)

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.

Collapse
 
ocasoprotal profile image
OcasoProtal

In Emacs ESC can be used as Meta key instead of ALT. One advantage of ESC in this scenario: You don't need to press the keys simultaneous, you press them one after another. This is nice solution when you have a non-English (e.g. German) keyboard layout and you need to press e.g. Meta+[ because on a German keyboard [ is in fact ALT GR+8 which might lead to a knot in your fingers.

Collapse
 
dekawho profile image
Deka

I use it frequenty. In videogames it's common using Esc, also comes to my mind situations where Enter don't send or close the text input, like notes in a pdf, and I use Esc to exit

Collapse
 
ferricoxide profile image
Thomas H Jones II • Edited

People that use extended character-sets (e.g., UTF) – but don't have an international keyboard – or meta-characters need escape keys (especially if their keyboard lacks a number-pad).

Collapse
 
moopet profile image
Ben Sinclair

Or people who have accessibility requirements and have difficulty pressing chorded key combinations.

Collapse
 
mateuszjarzyna profile image
Mateusz Jarzyna

I'm using in Intellij Idea to close a tool windows (shift + esc). Also sometimes to close (popup or sth)

Collapse
 
moopet profile image
Ben Sinclair

Even on a Mac, the shortcut for force-quit needs the escape key...