Function intuitive::event::quit

source ·
pub fn quit()
Expand description

Quits the application.

This is often used in KeyHandlers like so:

let on_key = on_key! {
  KeyEvent { code: Char('q'), .. } => event::quit(),
};