pub trait Input {
// Required methods
fn handle_focus(&mut self);
fn handle_key_event(&mut self, event: &KeyEvent) -> bool;
}Required Methods§
fn handle_focus(&mut self)
Sourcefn handle_key_event(&mut self, event: &KeyEvent) -> bool
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.