[−][src]Trait stdweb::web::event::IKeyboardEvent
IKeyboardEvent
objects describe a user interaction with the
keyboard. Each event describes a key; the event type identifies
what kind of activity was performed.
Provided methods
fn alt_key(&self) -> bool
Indicates whether the Alt key was down when this event was fired.
fn code(&self) -> String
Returns a code value that indicates the physical key pressed on the keyboard.
fn ctrl_key(&self) -> bool
Returns whether the Ctrl key was down when this event was fired.
fn get_modifier_state(&self, key: ModifierKey) -> bool
Returns whether a modifier key was down when this event was fired.
fn is_composing(&self) -> bool
Returns whether this event was fired during composition.
fn location(&self) -> KeyboardLocation
Returns the location of the key on the keyboard.
fn key(&self) -> String
Returns the value of a key or keys pressed by the user.
fn meta_key(&self) -> bool
Indicates whether the Meta key was down when this event was fired.
fn repeat(&self) -> bool
Indicates whether the key is held down such that it is repeating.
fn shift_key(&self) -> bool
Indicates whether the Shift key was down when this event was fired.
Implementors
impl IKeyboardEvent for KeyDownEvent
[src]
impl IKeyboardEvent for KeyDownEvent
fn alt_key(&self) -> bool | [src] |
fn code(&self) -> String | [src] |
fn ctrl_key(&self) -> bool | [src] |
fn get_modifier_state(&self, key: ModifierKey) -> bool | [src] |
fn is_composing(&self) -> bool | [src] |
fn location(&self) -> KeyboardLocation | [src] |
fn key(&self) -> String | [src] |
fn meta_key(&self) -> bool | [src] |
fn repeat(&self) -> bool | [src] |
fn shift_key(&self) -> bool | [src] |
impl IKeyboardEvent for KeyPressEvent
[src]
impl IKeyboardEvent for KeyPressEvent
fn alt_key(&self) -> bool | [src] |
fn code(&self) -> String | [src] |
fn ctrl_key(&self) -> bool | [src] |
fn get_modifier_state(&self, key: ModifierKey) -> bool | [src] |
fn is_composing(&self) -> bool | [src] |
fn location(&self) -> KeyboardLocation | [src] |
fn key(&self) -> String | [src] |
fn meta_key(&self) -> bool | [src] |
fn repeat(&self) -> bool | [src] |
fn shift_key(&self) -> bool | [src] |
impl IKeyboardEvent for KeyUpEvent
[src]
impl IKeyboardEvent for KeyUpEvent
fn alt_key(&self) -> bool | [src] |
fn code(&self) -> String | [src] |
fn ctrl_key(&self) -> bool | [src] |
fn get_modifier_state(&self, key: ModifierKey) -> bool | [src] |
fn is_composing(&self) -> bool | [src] |
fn location(&self) -> KeyboardLocation | [src] |
fn key(&self) -> String | [src] |
fn meta_key(&self) -> bool | [src] |
fn repeat(&self) -> bool | [src] |
fn shift_key(&self) -> bool | [src] |