pub struct KeyMap {Show 16 fields
pub character_forward: Binding,
pub character_backward: Binding,
pub word_forward: Binding,
pub word_backward: Binding,
pub delete_word_backward: Binding,
pub delete_word_forward: Binding,
pub delete_after_cursor: Binding,
pub delete_before_cursor: Binding,
pub delete_character_backward: Binding,
pub delete_character_forward: Binding,
pub line_start: Binding,
pub line_end: Binding,
pub paste: Binding,
pub accept_suggestion: Binding,
pub next_suggestion: Binding,
pub prev_suggestion: Binding,
}Expand description
Key bindings for text input navigation.
Fields§
§character_forward: BindingMove cursor forward one character.
character_backward: BindingMove cursor backward one character.
word_forward: BindingMove cursor forward one word.
word_backward: BindingMove cursor backward one word.
delete_word_backward: BindingDelete word backward.
delete_word_forward: BindingDelete word forward.
delete_after_cursor: BindingDelete text after cursor.
delete_before_cursor: BindingDelete text before cursor.
delete_character_backward: BindingDelete character backward.
delete_character_forward: BindingDelete character forward.
line_start: BindingMove to start of line.
line_end: BindingMove to end of line.
paste: BindingPaste from clipboard.
accept_suggestion: BindingAccept current suggestion.
next_suggestion: BindingNext suggestion.
prev_suggestion: BindingPrevious suggestion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyMap
impl RefUnwindSafe for KeyMap
impl Send for KeyMap
impl Sync for KeyMap
impl Unpin for KeyMap
impl UnwindSafe for KeyMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more