pub struct KeyPress {
pub key: String,
pub ctrl: bool,
pub alt: bool,
pub shift: bool,
pub meta: bool,
}Expand description
A platform-neutral key event.
Fields§
§key: StringThe key name: a single character ("b") or a named key
("Enter", "Backspace", "ArrowLeft", "Home").
ctrl: boolControl held.
alt: boolAlt/Option held.
shift: boolShift held.
meta: boolMeta/Cmd held.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyPress
impl RefUnwindSafe for KeyPress
impl Send for KeyPress
impl Sync for KeyPress
impl Unpin for KeyPress
impl UnsafeUnpin for KeyPress
impl UnwindSafe for KeyPress
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