Remapping of keys in Mac OS X

11

1

My MBP comes with a Turkish keyboard but I'm using US layout. However, the key just under ESC gives § instead of ` (back-quote) which I frequently use.

I need to remap this key but I couldn't find any information except remapping of modifier keys. How can I do it?

Ahmet

Posted 2009-09-07T09:18:25.840

Reputation: 113

As a side point, on my keyboard (UK) the backtick is between the left shift and Z keys – Xetius – 2009-09-07T11:03:00.107

Another side note, that symbol is there in all layouts I've seen. – Tiago Veloso – 2009-09-07T11:13:53.797

normally it is just under ESC key in windows and linux pcs. at least that is more accesable for us that deal with linux, latex, lisp. And finally it is used for switching application windows in Mac OS X. – Ahmet – 2009-09-07T11:50:56.437

1http://superuser.com/questions/18212/remapping-keys-for-the-mac – Nippysaurus – 2009-09-08T00:19:34.517

thank you Nippysaurus but doublecommand takes care of only modifier keys. backquote is not covered by it. i've tried both and found keyremap4macbook more powerful – Ahmet – 2009-09-08T07:20:24.340

Answers

15

Try KeyRemap4MacBook. It seems to offer a lot of options. Maybe it will fix your problem as well. Here's what it says about it:

This is a very powerful keyboard remapper for Mac OS X. In addition to simple key remapping, it has special remapping modes like Emacs-mode, SandS-mode (Space and Shift).

alex

Posted 2009-09-07T09:18:25.840

Reputation: 16 172

Perfect solution Alex. Did a find on § on KeyRemap4MacBook's UI and found the feature of Remapping Paragraph(§) to Backquote (`). Thank you – Ahmet – 2009-09-07T10:49:55.327

It's odd how I couldn't find this application after searching so much – Ahmet – 2009-09-07T10:50:49.177

I searched for macbook key remapping. Maybe you just checked for mac key remapping :).

If this worked for you, please consider marking it as the accepted answer. – alex – 2009-09-07T10:57:32.817

Oh, by the way, glad it worked for you :) – alex – 2009-09-07T10:58:10.787

Love it! Found my exact case! It means I am not the only one with this weird mapping problem - Apple should listen to users... – Magnetic_dud – 2012-04-20T13:33:38.123

Exellent app, except it seems to reinterpret key codes in real time instead of remapping them through some kind of system properties which causes key repeat rate to drop significantly - deal braker for me, I use arrow keys in text editors a lot. – Ivan Bartsov – 2012-10-03T12:38:21.670

4

Mac 10.12 sierra users should use this: https://github.com/tekezo/Karabiner-Elements

DMG download: https://pqrs.org/latest/karabiner-elements-latest.dmg

In "From key", I selected the option with Japanese characters and in To key I selected GRAVE_ACCENT_AND_TILDE (`).

image

Nimitack

Posted 2009-09-07T09:18:25.840

Reputation: 138

2Instead of the Japanese characters, I'm using non_us_backslash. You can view the exact character you need to map from Karabiner-EventViewer app. – ceilfors – 2017-04-04T08:37:21.300

Yes! I cannot believe that so few people are having this problem. This worked great for me--just a small issue I have is that now when I type "˜" I get small tilde initially instead of the one I want (~) for that to happen I still need to press space. Any ideas how to get rid of that? – Jakub Langr – 2018-10-07T22:33:42.697

0

You can use the hidutil command-line tool, which comes with macOS since Sierra 10.12:

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'

The keys are referenced by Usage ID from the USB HID Usage Tables Specification. The section key § is listed as "Keyboard Non-US \ and |" (0x64, see https://discussions.apple.com/thread/8133633) and backtick ` is "Keyboard Grave Accent and Tilde" (0x35).

siho

Posted 2009-09-07T09:18:25.840

Reputation: 1