NSEvent

  • True if this event should trigger the action bound to the given hotkey.

    Declaration

    Swift

    public func matches(_ hotkey: Hotkey) -> Bool
  • True if the shift modifier is pressed.

    Declaration

    Swift

    public var isShift: Bool
  • True if the control modifier is pressed.

    Declaration

    Swift

    public var isControl: Bool
  • True if the command modifier is pressed.

    Declaration

    Swift

    public var isCommand: Bool
  • True if the option modifier is pressed.

    Declaration

    Swift

    public var isOption: Bool
  • True if any of these modifiers is pressed: option, command, control, shift.

    Declaration

    Swift

    public var isAnyModifier: Bool