The Computer Oracle

Remapping of keys in Mac OS X

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: The World Wide Mind

--

Chapters
00:00 Remapping Of Keys In Mac Os X
00:24 Accepted Answer Score 29
00:48 Answer 2 Score 8
01:08 Answer 3 Score 42
01:36 Thank you

--

Full question
https://superuser.com/questions/37042/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #mac #keyboard #keyboardlayout

#avk47



ANSWER 1

Score 42


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).




ACCEPTED ANSWER

Score 29


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).




ANSWER 3

Score 8


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