Multitouch-Community icon indicating copy to clipboard operation
Multitouch-Community copied to clipboard

Section key (§) in the International English keyboard layout doesn't get remapped

Open michal-porebski opened this issue 1 year ago • 2 comments

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.

image

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

michal-porebski avatar Aug 07 '24 09:08 michal-porebski

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}]}'

rxhanson avatar Aug 07 '24 15:08 rxhanson

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

michal-porebski avatar Aug 08 '24 17:08 michal-porebski