[−][src]Trait orbtk::KeyDownHandler
Provided methods
fn on_key_down<H>(self, handler: H) -> Self where
H: 'static + Fn(&mut StatesContext, KeyEvent) -> bool,
H: 'static + Fn(&mut StatesContext, KeyEvent) -> bool,
Inserts a handler.
fn on_key_down_key<H>(self, key: Key, handler: H) -> Self where
H: 'static + Fn() -> bool,
H: 'static + Fn() -> bool,
Handles events triggered by a specific key.