Skip to content

Hold a key to repeat it instead of showing the accent menu — via Howard Oakley, The Eclectic Light Company

Commandlow riskmacOS 14 Sonoma and later

On a Mac, holding down a letter key pops up a menu of accented characters (é, è, ê…) instead of repeating the letter. That's annoying in code editors, games and Vim-style apps. One Terminal setting brings back normal key repeat.

Sign out and back in

The easy way

  1. Run the command, then log out and back in (or at least quit and reopen the app you type in).
  2. You can still type accents with Option key combinations or Edit > Emoji & Symbols.

Command

Run in Terminal (Applications › Utilities).

defaults write -g ApplePressAndHoldEnabled -bool false

Undo

defaults delete -g ApplePressAndHoldEnabled
-g is short for the global domain (NSGlobalDomain), so this applies to every app. Howard Oakley notes the global value wins over any per-app value.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every macOS version, so keep the undo handy.

key repeataccent menupress and holdvimgamingkeyboard

More in Keyboard, Mouse & Trackpad