Input

Trait Input 

Source
pub trait Input {
    // Required methods
    fn handle_focus(&mut self);
    fn handle_key_event(&mut self, event: &KeyEvent) -> bool;
}

Required Methods§

Source

fn handle_focus(&mut self)

Source

fn handle_key_event(&mut self, event: &KeyEvent) -> bool

Returns true if the event was handled; that is, the caller won’t consider the event and run it’s own handler.

Implementors§