Remapping the delete key on MacOS High Sierra

To change the Delete key actually delete rather than backspace, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000004C,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000004C}]}'
to change it back again, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A}]}'
Source : https://developer.apple.com/library/archive/technotes/tn2450/_index.html


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *