pub enum KeyAction {
}Expand description
Semantic user input action resolved from low-level terminal key events.
Variants§
Up
Move cursor / selection upward
Down
Move cursor / selection downward
PageUp
Page up viewport
PageDown
Page down viewport
Home
Jump to the first item / line
End
Jump to the last item / line
Left
Move cursor left or collapse
Right
Move cursor right or expand
Submit
Confirm, enter, or activate selection
Cancel
Cancel, escape, or navigate back
Toggle
Toggle item state (e.g. checkbox with Space)
Backspace
Remove character before cursor
Delete
Remove character under / after cursor
WordLeft
Jump cursor backward by one word
WordRight
Jump cursor forward by one word
DeleteWord
Delete word backward (e.g. Ctrl+W)
ClearInput
Clear current line / buffer (e.g. Ctrl+U)
Hotkey(char)
Direct alphanumeric hotkey pressed
Search
Search / filter action (e.g. ‘/’)
Refresh
Refresh data view (e.g. ‘r’ or F5)
Quit
Cleanly quit application (e.g. Ctrl+C or ‘q’)
Custom(String)
Custom named action
None
Ignored or unrecognized key event