KeyEvent

public struct KeyEvent

Describes a key event, this includes the key value, and there are two convenience properties isAlt and isControl

  • key

    Symbolic definition of the key

    Declaration

    Swift

    public var key: Key
  • Gets a value indicating whether the Alt key was pressed (real or synthesized)

    Declaration

    Swift

    public var isAlt: Bool { get }
  • Determines whether the value is a control key (a shortcut to avoid testing all the Control values)

    Declaration

    Swift

    public var isControl: Bool { get }