On both iOS and macOS you can hold a key on the keyboard to get the accent menu from which you can convert an e
to the ê
special character by pressing the indicated number. On my Mac this feature disabled itself after one of the recent updates. Pretty annoying and I tried a lot of things to get it back. Including reboots and changing the keyboard languages. Nothing helped untill I came across this bright comment. A simple tweak to re-enable the press-and-hold feature, without rebooting or messing up other settings!
How to fix
Part of the problem is that macOS overwrites the ApplePressAndHoldEnabled
settings in the Library/Preferences/.GlobalPreferences.plist
file. Basically you need to tell your Mac to reset the setting by running the command below and perform a logout/login sequence.
Open Terminal app from Spotlight search or Launchpad. Then copy paste the following line and hit [enter] key:
defaults write -g ApplePressAndHoldEnabled -bool true
Now logout from the Apple menu, log back in and it’s resolved!
Permanent fix
After a while the preference may disable itself. Requiring you to rerun the command, logout and log back in to get it working again. To work around this problem I have created this so called ‘launch agent’ with the above command which runs each time you login. You place the code as a .plist file inside the Library/LaunchAgents/
folder, relative to your username home folder. Then macOS will automatically run it upon logging in.
Open Terminal app from Spotlight search or Launchpad. Then copy paste the following line and hit [enter] key:
curl -o ~/Library/LaunchAgents/com.fvdm.AccentMenu.plist https://fvdm.com/u/fix-macos-accentmenu.plist
You can view the contents of that file here.
Now logout from the Apple menu, log back in and it’s resolved!
How to undo
To undo this change run these commands in Terminal to remove the login script and disable the accent menu:
rm -vf ~/Library/LaunchAgents/com.fvdm.AccentMenu.plist
defaults write -g ApplePressAndHoldEnabled -bool false
Now logout from the Apple menu, log back in and you’re back to the old situation.
Changelog
2021-09-13 – Replaced wget with curl which comes standard with macOS.
2021-08-19 – Shorter te.
2021-06-25 – Small fix in plist file
2021-06-07 – Added login script
2021-01-02 – Added note about fix
Leave a Reply