Disable the Press-and-Hold Accent Popup on macOS
Make held keys repeat like on a PC instead of showing the diacritics chooser, using ApplePressAndHoldEnabled.
01Command
$ defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false && echo 'Restart the app you want it applied to.'02What it does
By default macOS replaces key repeat with a popup of accented alternatives when you hold a letter key, which is great for French or German text but annoying in code editors, games and Terminal. Setting ApplePressAndHoldEnabled to false globally restores classic key repeat. The change takes effect per app after a restart, so relaunch the app (or the whole Mac) afterwards.
03Risk
04Undo
$ defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool true05Sources
- macOS defaults - read, write and delete macOS user defaultsEvidence: Shows `defaults write domain key -bool true/false` as the standard way to write boolean preference keys into NSGlobalDomain or per-app domains.
- macOS setup dotfiles (.macos)Evidence: Contains the exact line 'defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false' with a comment about the press-and-hold character popup.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Point macOS screen captures at any folder you choose instead of the desktop.
Grab any file from the web straight into the current folder — no browser needed.
List the biggest files in your home folder that are eating disk space.