Leo's dev blog

How to disable popup showing accented characters when press and hold a key on macOS

Published on
Published on
/1 mins read/---

In MacOS, have you ever encountered the issue when pressing down and holding a key on your keyboard, then a popup will show up with a list of accented characters like this?

Characters popup

This is kind of annoying and might affect your typing speed.

In order to disable this behavior, you can execute the following command in your terminal:

defaults write -g ApplePressAndHoldEnabled -bool false

Now you will need to logout and login again for the changes to take effect. For some apps, you might need to restart.

If you want to enable this behavior again, you can use the following command:

defaults write -g ApplePressAndHoldEnabled -bool true

Happy coding!