pub struct KeyInput {
pub key: String,
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub meta: bool,
}Expand description
A normalized key event from the host matching browser KeyboardEvent fields.
Fields§
§key: StringThe KeyboardEvent.key value such as "a", "/", "ArrowLeft", or "Backspace".
shift: boolWhether the shift modifier is active.
ctrl: boolWhether the control modifier is active.
alt: boolWhether the alt modifier is active.
meta: boolWhether the meta modifier is active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyInput
impl RefUnwindSafe for KeyInput
impl Send for KeyInput
impl Sync for KeyInput
impl Unpin for KeyInput
impl UnsafeUnpin for KeyInput
impl UnwindSafe for KeyInput
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