liner
liner copied to clipboard
Change how events are passed to the user of liner?
Right now, we pass closures to the Context/Editor to process Events.
Would something like this be better?
pub trait EventHandler {
fn handle_before_key_press(&mut self, key: Key) {}
fn handle_after_key_press(&mut self, key: Key) {}
...
}
Tough call. I think the current way is more rustic vs having a trait.