Enum requestty_ui::events::Movement [−][src]
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
The Up arrow key, and k is captured
The Down arrow key, and j is captured
The Left arrow key, h, and ctrl+b is captured
The Right arrow key, l, and ctrl+f is captured
The PageUp key is captured
The PageDown key is captured
The Home key, g, ctrl+a is captured
The End key, G, ctrl+e is captured
ctrl+right, alt+right, and alt+f are captured
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