KeyHandler typedef

KeyHandler = bool Function(KeyEvent event)

A key handler returns true when it used the key. Keys nobody uses are kept as type-ahead for the next handler.

Implementation

typedef KeyHandler = bool Function(KeyEvent event);