pub struct KeyMap {
pub up: KeyCode,
pub down: KeyCode,
pub left: KeyCode,
pub right: KeyCode,
pub page_up: KeyCode,
pub page_down: KeyCode,
pub home: KeyCode,
pub end: KeyCode,
pub confirm: KeyCode,
pub cancel: KeyCode,
pub backspace: KeyCode,
pub toggle_char: char,
}
Expand description
Customizable key bindings for raw-mode inputs.
Fields§
§up: KeyCode
§down: KeyCode
§left: KeyCode
§right: KeyCode
§page_up: KeyCode
§page_down: KeyCode
§home: KeyCode
§end: KeyCode
§confirm: KeyCode
§cancel: KeyCode
§backspace: KeyCode
§toggle_char: char
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