Skip to content

Instantly share code, notes, and snippets.

@nezticle
Last active June 16, 2025 18:58
Show Gist options
  • Save nezticle/871091a41ce322e81be947d83a5e4a86 to your computer and use it in GitHub Desktop.
Save nezticle/871091a41ce322e81be947d83a5e4a86 to your computer and use it in GitHub Desktop.
How to get Tilde (~) to work correctly in macOS

This is to solve an issue where you use a non-apple european keyboard with the US keyboard layout in macOS where the Tilde key is in the wrong place.

This is the process for the Logitec MX Keys Mini

  • Connect the keyboard (bluetooth)
  • Make sure the keyboard is in PC mode (hold fn + p for 3 seconds)
  • Go through the keyboard wizard and at the end select the European ISO... layout
  • Switch the keyboard to Mac mode (hold fn + o for 3 seconds)
  • Tilde should work

If this doesn't work:

  • delete /Library/Preferences/com.apple.keyboardtype.plist
  • reboot
  • try above again
@leehyeonbeen
Copy link

leehyeonbeen commented Jun 16, 2025

Thank you so much for this. In my case:

  1. sudo rm -rf /Library/Preferences/com.apple.keyboardtype.plist
  2. reboot

worked out. Using Logitech MX Keys Mini, M1 Max MBP16 on macOS Sequoia 15.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment