Enum requestty_ui::events::Movement
source · [−]pub enum Movement {
Up,
Down,
Left,
Right,
PageUp,
PageDown,
Home,
End,
NextWord,
PrevWord,
}Expand description
Movements that can be captured from a KeyEvent. See the individual variants for
what keys they capture
Variants
Up
The Up arrow key, and k is captured
Down
The Down arrow key, and j is captured
Left
The Left arrow key, h, and ctrl+b is captured
Right
The Right arrow key, l, and ctrl+f is captured
PageUp
The PageUp key is captured
PageDown
The PageDown key is captured
Home
The Home key, g, ctrl+a is captured
End
The End key, G, ctrl+e is captured
NextWord
ctrl+right, alt+right, and alt+f are captured
PrevWord
ctrl+left, alt+left, and alt+b are captured
Implementations
Gets the movement (if any) from the current event
It also captures ‘h’, ‘j’, ‘k’, ‘l’, ‘g’, and ‘G’. If these are required for some input, it must be checked before capturing a movement
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Movement
impl UnwindSafe for Movement
Blanket Implementations
Mutably borrows from an owned value. Read more