pub struct Press {
pub chord: String,
pub key: String,
pub editable: bool,
pub activatable: bool,
pub repeat: bool,
pub target: Value,
pub at_ms: u64,
}Expand description
One key press, as the window heard it.
Fields§
§chord: Stringevent_chord’s.
key: StringThe event’s own key.
editable: boolIts target is an input, a textarea, a select or contenteditable.
activatable: boolFRAME-38: its target is a button, a link (a[href]), a summary
or [role=button] — enter and space click it.
repeat: boolFRAME-38: the key held down, autorepeating.
target: ValueWhat a handler’s ev.target is.
at_ms: u64When, on the page’s clock (ms).
Trait Implementations§
impl StructuralPartialEq for Press
Auto Trait Implementations§
impl Forget for Press
impl Freeze for Press
impl RefUnwindSafe for Press
impl Send for Press
impl Sync for Press
impl Unpin for Press
impl UnsafeUnpin for Press
impl UnwindSafe for Press
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.