Skip to content

Bug in event monitoring #73

Description

@derpmacos

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions