1

I found out how to disable to the accented character popup for all apps here but I like the popup in my web browser and when typing emails but not for instance while using my terminal or IDE.

Is it possible to enable key repeat for some apps but not others or is it an all or nothing setting?

IconDaemon
  • 19,234
  • As far as I'm aware, the -g defines it as a global, same as NSGlobalDomain. There's an outside possibility an app may respond to it instead as a local, e.g https://apple.stackexchange.com/questions/308104/activate-pressandhold-for-libreoffice-or-openoffice – Tetsujin Jan 03 '23 at 12:19
  • Also - https://stackoverflow.com/questions/33152551/how-can-i-disable-applepressandholdenabled-for-a-specific-application-repeat which is way above my paygrade ;) – Tetsujin Jan 03 '23 at 12:20

1 Answers1

1

The following command sets the "Global Preference" for the user:

defaults write -g ApplePressAndHoldEnabled -bool false

You can set preferences per-app, with commands such as:

defaults write <com.company.app> ApplePressAndHoldEnabled -bool false

or:

defaults write -app myTerminal ApplePressAndHoldEnabled -bool false

These will override the global setting. However:

Whether the app will respond to the preference may depend on the way that the app has been coded; e.g. to what extent it uses and customizes NSTextView.

benwiggy
  • 35,635