public class KeyEvent extends GuiEvent:
Keyboard event payload emitted by focusable GUI widgets.
field.keyPressed += lambda(e: KeyEvent): print(e.keyCode)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | altalt as Boolean |
Whether Alt was held during the key event. |
| public readonly property | controlcontrol as Boolean |
Whether Control was held during the key event. |
| public readonly property | keykey as String |
Human-readable key name when available. |
| public readonly property | keyCodekeyCode as Int |
Native key code or keysym reported by the backend. |
| public readonly property | shiftshift as Boolean |
Whether Shift was held during the key event. |