[][src]Struct yew::prelude::KeyDownEvent

pub struct KeyDownEvent(_);

The KeyDownEvent is fired when a key is pressed down. Unlike the KeyPressEvent event it's also fired for keys which do not produce a character value.

(JavaScript docs)

Trait Implementations

impl Eq for KeyDownEvent[src]

impl InstanceOf for KeyDownEvent[src]

impl JsSerialize for KeyDownEvent[src]

impl Clone for KeyDownEvent[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl IKeyboardEvent for KeyDownEvent[src]

fn alt_key(&self) -> bool[src]

Indicates whether the Alt key was down when this event was fired. Read more

fn code(&self) -> String[src]

Returns a code value that indicates the physical key pressed on the keyboard. Read more

fn ctrl_key(&self) -> bool[src]

Returns whether the Ctrl key was down when this event was fired. Read more

fn get_modifier_state(&self, key: ModifierKey) -> bool[src]

Returns whether a modifier key was down when this event was fired. Read more

fn is_composing(&self) -> bool[src]

Returns whether this event was fired during composition. Read more

fn location(&self) -> KeyboardLocation[src]

Returns the location of the key on the keyboard. Read more

fn key(&self) -> String[src]

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

fn meta_key(&self) -> bool[src]

Indicates whether the Meta key was down when this event was fired. Read more

fn repeat(&self) -> bool[src]

Indicates whether the key is held down such that it is repeating. Read more

fn shift_key(&self) -> bool[src]

Indicates whether the Shift key was down when this event was fired. Read more

impl PartialEq<KeyDownEvent> for KeyDownEvent[src]

impl ReferenceType for KeyDownEvent[src]

impl AsRef<Reference> for KeyDownEvent[src]

impl Debug for KeyDownEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]