struct KeyEvent
source · line 76public
public struct KeyEvent(val physicalKey: PhysicalKey, val logicalKey: LogicalKey, val location: KeyLocation, val state: ElementState, val isRepeat: Boolean, val modifiers: Modifiers, val synthetic: Boolean, val time: InputTime, val deviceId: DeviceId? = None, val textCommands: Array<TextEditCommand> = [])
An owned key notification; synthetic releases have no invented hardware time.
field time
source · line 84public
val time: InputTime
field isRepeat
source · line 81public
val isRepeat: Boolean
constructor constructor
source · line 76public
constructor(val physicalKey: PhysicalKey, val logicalKey: LogicalKey, val location: KeyLocation, val state: ElementState, val isRepeat: Boolean, val modifiers: Modifiers, val synthetic: Boolean, val time: InputTime, val deviceId: DeviceId? = None, val textCommands: Array<TextEditCommand> = [])
parameter physicalKey
source · line 77public
val physicalKey: PhysicalKey
parameter modifiers
source · line 82public
val modifiers: Modifiers
parameter time
source · line 84public
val time: InputTime
parameter textCommands
source · line 86public
val textCommands: Array<TextEditCommand> = []
parameter state
source · line 80public
val state: ElementState
parameter isRepeat
source · line 81public
val isRepeat: Boolean
parameter location
source · line 79public
val location: KeyLocation
parameter deviceId
source · line 85public
val deviceId: DeviceId? = None
parameter logicalKey
source · line 78public
val logicalKey: LogicalKey
parameter synthetic
source · line 83public
val synthetic: Boolean
field synthetic
source · line 83public
val synthetic: Boolean
field textCommands
source · line 86public
val textCommands: Array<TextEditCommand> = []
field deviceId
source · line 85public
val deviceId: DeviceId? = None
field state
source · line 80public
val state: ElementState
field physicalKey
source · line 77public
val physicalKey: PhysicalKey
field logicalKey
source · line 78public
val logicalKey: LogicalKey
field location
source · line 79public
val location: KeyLocation
field modifiers
source · line 82public
val modifiers: Modifiers
function equals
source · line 76publiccompiler-derived
operator fun equals(other: KeyEvent): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: PhysicalKey, LogicalKey, KeyLocation, ElementState, Boolean, Modifiers, InputTime, Option<DeviceId>, Array<TextEditCommand>.