boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.76k stars 433 forks source link

Add "fn" key #577

Open kylejbrk opened 1 year ago

kylejbrk commented 1 year ago

As far as I can tell there is not support for adding the "fn" or "function" key as a modifier.

This would be a great feature to have.

kylejbrk commented 1 year ago

is anyone able to give an update on this request?

NathanSauret commented 1 year ago

Please "fn" key

girvile commented 1 year ago

https://superuser.com/questions/1557754/is-there-a-way-to-get-a-virtual-fn-key-to-work-on-a-virtual-keyboard-not-a-tog "The trouble with those keys is they are combined before leaving the keyboard, they're not done in the OS. The OS doesn't even see those 'volume up/down' type keys at all, they're acted on before the interpreter even sees them. I can demonstrate this for Mac using an on-screen key-code interpreter, but idk how to show it for Win"

Therefore if you want to simulate a fn+key press, you have to send the virtual key corresponding to them

willwade commented 2 months ago

What I don’t get about this is that karabiner elements CAN interpret the fn key. Unless I’m hallucinating..