-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
PKPowerKeyEventListener.m - (void)monitorPowerKey { ..
bug:
NSEventTypeSystemDefined is not a mask.
Instead use CGEventMask eventTypeMask = NX_SYSDEFINEDMASK and skip the loop adding masks for other event types.
suggestion:
CGEventTapCreate(...) would be better configured with kCGEventTapOptionListenOnly since it doesn't seem to be possible to block the power events.
Metadata
Metadata
Assignees
Labels
No labels