Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michal-porebski opened this issue Aug 7, 2024 · 2 comments

Comments

@michal-porebski
Copy link

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

@rxhanson
Copy link
Owner

rxhanson commented Aug 7, 2024

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

@michal-porebski
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants