Open saml-dev opened 2 years ago
It sounds a lot like Apple is intentionally preventing this behavior. The caps-lock key on OSX works a lot differently than most other keys. I am not sure there is any way to "fix" this. Windows does something similar with ctrl+alt+delete.
I'm on Mac OS 12.6 and suppressing caps lock doesn't work.
Setup
To test this, I'm building and running the
demo_hook
example in this repo. I added these lines to try to suppress the event:Expected Behavior
Setting
event->reserved
should prevent the caps lock key default behavior from happening.Actual Behavior
The caps lock press is still registered and toggles the caps lock mode.
Note – I am able to suppress other keys successfully, such as
VC_D
. Let me know if there's any other testing I can do. I've never written C and was just compiling/tweaking this to test, but happy to help how I can.