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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.