I used the hidutil
function to remap several keys on my keyboard:
hidutil property --set '{"UserKeyMapping":
[{"HIDKeyboardModifierMappingSrc":0x70000003e,
"HIDKeyboardModifierMappingDst":0x70000004c},
{"HIDKeyboardModifierMappingSrc":0x70000004c,
"HIDKeyboardModifierMappingDst":0x70000003e} ,
{"HIDKeyboardModifierMappingSrc":0x70000003f,
"HIDKeyboardModifierMappingDst":0x70000002a},
{"HIDKeyboardModifierMappingSrc":0x70000002a,
"HIDKeyboardModifierMappingDst":0x70000003f}]
}'
My problem is that I made some mistakes in it, and I don't find the way to restore it.