[][src]Trait orbtk::KeyDownHandler

pub trait KeyDownHandler: Widget {
    fn on_key_down<H>(self, handler: H) -> Self
    where
        H: 'static + Fn(&mut StatesContext, KeyEvent) -> bool
, { ... }
fn on_key_down_key<H>(self, key: Key, handler: H) -> Self
    where
        H: 'static + Fn() -> bool
, { ... } }

Provided methods

fn on_key_down<H>(self, handler: H) -> Self where
    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

Handles events triggered by a specific key.

Loading content...

Implementors

impl KeyDownHandler for TextBox[src]

Loading content...