enum KeyCode
source · line 7public enum KeyCode
A logical key, Unicode scalar, function key, media key, or separately reported modifier key. Physical-key information depends on the active terminal protocol.
variant Down
source · line 31Down
The Down logical key reported by the terminal.
variant Right
source · line 23Right
The Right logical key reported by the terminal.
variant Delete
source · line 59Delete
The Delete logical key reported by the terminal.
variant Insert
source · line 63Insert
The Insert logical key reported by the terminal.
variant Null
source · line 75Null
A NUL key code.
variant Menu
source · line 103Menu
The Menu logical key reported by the terminal.
variant F
source · line 67F(val number: Int)
A numbered function key.
parameter number
source · line 67val number: Int
field number
source · line 67val number: Int
variant Home
source · line 35Home
The Home logical key reported by the terminal.
variant CapsLock
source · line 83CapsLock
The CapsLock logical key reported by the terminal.
variant ScrollLock
source · line 87ScrollLock
The ScrollLock logical key reported by the terminal.
variant PageDown
source · line 47PageDown
The PageDown logical key reported by the terminal.
variant Left
source · line 19Left
The Left logical key reported by the terminal.
variant Pause
source · line 99Pause
The Pause logical key reported by the terminal.
variant Modifier
source · line 115Modifier(val code: ModifierKeyCode)
An independently reported modifier key.
parameter code
source · line 115val code: ModifierKeyCode
field code
source · line 115val code: ModifierKeyCode
variant Media
source · line 111Media(val code: MediaKeyCode)
A media-control key.
field code
source · line 111val code: MediaKeyCode
parameter code
source · line 111val code: MediaKeyCode
variant Tab
source · line 51Tab
The Tab logical key reported by the terminal.
variant BackTab
source · line 55BackTab
The backward-tab key report.
variant Char
source · line 71Char(val character: Char)
One Unicode scalar delivered as a character key.
parameter character
source · line 71val character: Char
field character
source · line 71val character: Char
variant PrintScreen
source · line 95PrintScreen
The PrintScreen logical key reported by the terminal.
variant Esc
source · line 79Esc
The Escape key, after any ambiguity delay.
variant Up
source · line 27Up
The Up logical key reported by the terminal.
variant NumLock
source · line 91NumLock
The NumLock logical key reported by the terminal.
variant Enter
source · line 15Enter
The Enter logical key reported by the terminal.
variant End
source · line 39End
The End logical key reported by the terminal.
variant KeypadBegin
source · line 107KeypadBegin
The keypad center/begin key.
variant PageUp
source · line 43PageUp
The PageUp logical key reported by the terminal.
variant Backspace
source · line 11Backspace
The Backspace logical key reported by the terminal.
function equals
source · line 7operator fun equals(other: KeyCode): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Int, Char, MediaKeyCode, ModifierKeyCode.