Multitouch-Community
Multitouch-Community copied to clipboard
Section key (§) in the International English keyboard layout doesn't get remapped
Hi,
it seems like the Section key (§) in the International English keyboard layout doesn't get remapped properly.
I tried to remap it to "Delete" but it keeps inserting the "§" sign instead. Remapping other keys to "Delete" works as expected.
Debug: Multitouch: 1.27.32 (187) macOS: Version 14.5 (Build 23F79) Model: Mac14,9 Devices: ["internalTrackpad2:504403158265495597:45","unknown:288230376747900722:596188978"] Multitouch Configuration: [{"gid":{"gesture":"threeSwipeUp","appId":""},"r":{"action":238,"type":2}},{"gid":{"gesture":"threeSwipeRight","appId":""},"r":{"keyCode":48,"type":1,"focus":false,"modifierFlags":655360}},{"gid":{"gesture":"threeSwipeLeft","appId":""},"r":{"type":1,"keyCode":48,"modifierFlags":524288,"focus":false}},{"r":{"type":3,"action":300},"gid":{"gesture":"threeTap","appId":""}},{"gid":{"gesture":"threeSwipeDown","appId":""},"r":{"flag":false,"action":504,"type":4}}] | tap-to-click
Looks like root privileges are necessary to remap the section sign. Perhaps this changed in recent versions of macOS?
I'll explore the possibility of allowing you to give Multitouch elevated permissions to do this, but in the meantime you could use this terminal command to remap it outside of Multitouch. You'll want to delete any key remapping in Multitouch first.
sudo hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x70000000C}]}'
Thanks, this finally did the trick:
sudo hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x70000004C}]}'
(note 0x70000004C instead of 0x70000000C for the forward delete)
Those links were helpful as well: https://rakhesh.com/mac/using-hidutil-to-map-macos-keyboard-keys/ https://hidutil-generator.netlify.app