Struct stdweb::web::event::KeypressEvent
[−]
[src]
pub struct KeypressEvent(_);
The KeypressEvent
is fired when a key is pressed down, and that
key normally produces a character value.
Trait Implementations
impl IEvent for KeypressEvent
[src]
fn event_type(&self) -> String
Returns a string containing the type of event. It is set when the event is constructed and is the name commonly used to refer to the specific event. Read more
fn prevent_default(&self)
Cancels the event if it is cancelable, without stopping further propagation of the event. Read more
impl IKeyboardEvent for KeypressEvent
[src]
impl Debug for KeypressEvent
[src]
impl Clone for KeypressEvent
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for KeypressEvent
[src]
impl<T: TryInto<Reference>> TryFrom<T> for KeypressEvent where
T::Error: Into<Box<Error>>,
[src]
T::Error: Into<Box<Error>>,