Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

hidutil - looking for Usage ID of § key

OS: MacOS High Sierra


Following https://developer.apple.com/library/content/technotes/tn2450/_index.html, I'm looking remap they top left key on a MacBook Pro (UK version) internal keyboard using command hidutil. The key is ±/§. The command works as expect when I remap a different key, however, I cannot figure out the correct hex usage ID for the ±/§ key.


The US model has the Grave accent and tilde key in it's place. However, it's usage ID (0x35) doesn't work for the ±/§ key.


Any help is much appreciated.

Reinhard

MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13)

Posted on Oct 26, 2017 9:47 AM

Reply
Question marked as Best reply

Posted on Jan 12, 2018 2:18 PM

Hi Reinhard,


The Usage ID you are looking for is 0x64.


This command switches the § key with the 0:


hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardMo difierMappingDst":0x700000027},{"HIDKeyboardModifierMappingSrc":0x700000027,"HID KeyboardModifierMappingDst":0x700000064}]}'


If you want to restore the original state you can just:


hidutil property --set '{"UserKeyMapping":[]}'


Good luck,

Andris

2 replies
Question marked as Best reply

Jan 12, 2018 2:18 PM in response to reinhard76

Hi Reinhard,


The Usage ID you are looking for is 0x64.


This command switches the § key with the 0:


hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardMo difierMappingDst":0x700000027},{"HIDKeyboardModifierMappingSrc":0x700000027,"HID KeyboardModifierMappingDst":0x700000064}]}'


If you want to restore the original state you can just:


hidutil property --set '{"UserKeyMapping":[]}'


Good luck,

Andris

hidutil - looking for Usage ID of § key

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.