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
KeyMap is the key bindings for different actions within the textinput.
Fields§
§character_forward: BindingMove the cursor forward one character.
character_backward: BindingMove the cursor backward one character.
word_forward: BindingMove the cursor forward one word.
word_backward: BindingMove the cursor backward one word.
delete_word_backward: BindingDelete the word backward.
delete_word_forward: BindingDelete the word forward.
delete_after_cursor: BindingDelete after the cursor.
delete_before_cursor: BindingDelete before the cursor.
delete_character_backward: BindingDelete the character backward.
delete_character_forward: BindingDelete the character forward.
line_start: BindingGo to the line start.
line_end: BindingGo to the line end.
paste: BindingPaste from the clipboard.
accept_suggestion: BindingAccept the current suggestion.
next_suggestion: BindingGo to the next suggestion.
prev_suggestion: BindingGo to the previous 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 UnsafeUnpin 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