Scoop API

scoop:scoop.window:0.1.0

KeyEvent

struct KeyEvent

source · line 76
public
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.

constructor constructor

source · line 76
public
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> = [])