Skip to content

Instantly share code, notes, and snippets.

@nezticle
Last active July 18, 2024 13:05
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
@nezticle
Copy link
Author

nezticle commented Mar 2, 2024

I had to do this again with the MX Keys S Plus today, and the same instructions worked out fine. It's like the Nordic keys one which I use in US layout. When I went through the Wizard it wasn't recognized as European ISO, but it was the only one with ISO in the name. "~" worked fine once I switched it back to Mac mode.

I mentioned the Wizard, because when it seems when you connect these Logitech keyboards to macOS by adding them as a Bluetooth device, they always bring up a keyboard Wizard (says something about not being able to identifiy which layout the keyboard is in etc).

Also I guess I should mention that I've never actually tried to buy the "Mac version" of these keyboards even though I see that is an option. Things might just work then, but these are the Cross-platform editions I've tested with where you have both key's printed on the actual keyboard.

@whydrae
Copy link

whydrae commented Mar 15, 2024

Maybe someone finds it helpful, but I couldn't get used to the fact, that tilde was on the right to the Shift key, but I get used that it's above the Tab. To swap them, hold "fn+U" for around 3 seconds and it will be changed. I found it somewhere over Reddit, but no docs to this behaviour attached.

@lupuohaufe
Copy link

@whydrae yessir! that did the job. thank you very much!

@estabij
Copy link

estabij commented Jun 27, 2024

@whydrae yes that worked, fn + u. Thanks a lot!

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