KeyboardModifiers

data class KeyboardModifiers(val shift: Boolean = false, val control: Boolean = false, val alt: Boolean = false, val superKey: Boolean = false, val capsLock: Boolean = false, val numLock: Boolean = false)(source)

Immutable typed keyboard modifier state captured with one key event.

Constructors

Link copied to clipboard
constructor(shift: Boolean = false, control: Boolean = false, alt: Boolean = false, superKey: Boolean = false, capsLock: Boolean = false, numLock: Boolean = false)

Properties

Link copied to clipboard

whether either Alt modifier is active.

Link copied to clipboard

whether Caps Lock is active when the platform reports lock state.

Link copied to clipboard

whether either Control modifier is active.

Link copied to clipboard

whether Num Lock is active when the platform reports lock state.

Link copied to clipboard

whether either Shift modifier is active.

Link copied to clipboard

whether the platform command or Super modifier is active.