pub struct KeyPress {
pub ctrl: bool,
pub shift: bool,
pub alt: bool,
pub meta: bool,
pub key: String,
}Expand description
A key with modifiers. key is the KeyboardEvent.key value, lowercased ("a", "/",
"arrowup", "enter", "f2").
Fields§
§ctrl: bool§shift: bool§alt: bool§meta: bool§key: StringImplementations§
Trait Implementations§
impl Eq for KeyPress
impl StructuralPartialEq for KeyPress
Auto Trait Implementations§
impl Forget for KeyPress
impl Freeze for KeyPress
impl Move 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