NUIKit / CGSInternal

A collection of private CoreGraphics and SkyLight routines.
188 stars 32 forks source link

Disable fn key #8

Open bhagyash007 opened 3 years ago

bhagyash007 commented 3 years ago

I want to disable fn key from showing the emoji menu globally when my app is active / background

I am already achieving this using CGSSetGlobalHotKeyOperatingMode(connection, kCGSGlobalHotKeyDisable)

However, this disables all hotkeys and I'm calling this on keydown and then re-activating on key-up

Is there a way I can only target the fn key and disable it instead of this toggle on / off behaviour for all keys?