pub struct FocusEvent {
pub event: Event,
}Expand description
A DOM FocusEvent (focus, blur).
Fields§
§event: EventImplementations§
Methods from Deref<Target = Event>§
Sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
preventDefault(): a cancelable event’s default action is not to
happen.
Sourcepub fn default_prevented(&self) -> bool
pub fn default_prevented(&self) -> bool
defaultPrevented.
Sourcepub fn stop_propagation(&self)
pub fn stop_propagation(&self)
stopPropagation().
Sourcepub fn propagation_stopped(&self) -> bool
pub fn propagation_stopped(&self) -> bool
Whether stopPropagation() was called.
Trait Implementations§
Source§impl Debug for FocusEvent
impl Debug for FocusEvent
Auto Trait Implementations§
impl !Freeze for FocusEvent
impl !RefUnwindSafe for FocusEvent
impl !Sync for FocusEvent
impl Forget for FocusEvent
impl Move for FocusEvent
impl Send for FocusEvent
impl Unpin for FocusEvent
impl UnsafeUnpin for FocusEvent
impl UnwindSafe for FocusEvent
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