Trait yew::prelude::IKeyboardEvent
source · pub trait IKeyboardEvent: IEvent {
fn alt_key(&self) -> bool { ... }
fn code(&self) -> String { ... }
fn ctrl_key(&self) -> bool { ... }
fn get_modifier_state(&self, key: ModifierKey) -> bool { ... }
fn is_composing(&self) -> bool { ... }
fn location(&self) -> KeyboardLocation { ... }
fn key(&self) -> String { ... }
fn meta_key(&self) -> bool { ... }
fn repeat(&self) -> bool { ... }
fn shift_key(&self) -> bool { ... }
}
Expand description
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
sourcefn code(&self) -> String
fn code(&self) -> String
Returns a code value that indicates the physical key pressed on the keyboard.
sourcefn get_modifier_state(&self, key: ModifierKey) -> bool
fn get_modifier_state(&self, key: ModifierKey) -> bool
Returns whether a modifier key was down when this event was fired.
sourcefn is_composing(&self) -> bool
fn is_composing(&self) -> bool
Returns whether this event was fired during composition.
sourcefn location(&self) -> KeyboardLocation
fn location(&self) -> KeyboardLocation
Returns the location of the key on the keyboard.