pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.55k stars 834 forks source link

hidutil code for `fn` key? #2758

Open fooness opened 3 years ago

fooness commented 3 years ago

Karabiner manages to remap my insert key to the fn key … but unfortunately, I cannot reproduce this with hdiutil:

$ hidutil property --matching '{ "ProductID": 0x1337 }' --set '{ "UserKeyMapping": [{ "HIDKeyboardModifierMappingSrc": 0x700000049, "HIDKeyboardModifierMappingDst": 0xFF00000003 }] }'

The hex value 0x700000049 is the code for insert; this code is correct. The hex value 0xFF00000003 or 1095216660483 in decimal should be the code for left fn, but it seems this might be wrong.

Does anyone here maybe know to which hidutil compatible hex code the fn key translates?

eqyiel commented 3 years ago

@fooness here: https://apple.stackexchange.com/a/396863

fooness commented 3 years ago

@eqyiel That’s the thred I came from; and thank you for your detailed post over there.

If my research is correct, then unfortunately this does not work with keyboards that are not manufactored by Apple, i.e. shipping with the Apple vendor id. That’s a shame. https://github.com/qmk/qmk_firmware/issues/2179

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.