pub fn bind_any_key(action: Action)
Expand description

Install any key handler that will be invoked on any key presses.

use mki::*;

fn install_global_handler() {
  bind_any_key(Action::handle_kb(|(key)| println!("Some key pressed: {:?}", key)));
}