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.

(JavaScript docs)

Trait Implementations

impl IEvent for KeypressEvent
[src]

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

Cancels the event if it is cancelable, without stopping further propagation of the event. Read more

impl IKeyboardEvent for KeypressEvent
[src]

Returns the value of a key or keys pressed by the user. Read more

impl Debug for KeypressEvent
[src]

Formats the value using the given formatter.

impl Clone for KeypressEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<Reference> for KeypressEvent
[src]

Performs the conversion.

impl<T: TryInto<Reference>> TryFrom<T> for KeypressEvent where
    T::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.