pub fn requests_exit(event: &baseview::Event) -> bool {
    match event {
        baseview::Event::Window(baseview::WindowEvent::WillClose) => true,
        #[cfg(target_os = "macos")]
        baseview::Event::Keyboard(event) => {
            if event.code == keyboard_types::Code::KeyQ
                && event.modifiers == keyboard_types::Modifiers::META
                && event.state == keyboard_types::KeyState::Down
            {
                return true;
            }

            false
        }
        _ => false,
    }
}
/// Returns true if the provided event should cause an [`Application`] to
/// exit.
Returns true if the provided event should cause an [`Application`] to
exit.
Returns true if the provided event should cause an [ ` Application ` ] to exit .
pub fn requests_exit(event: &baseview::Event) -> bool {
    match event {
        baseview::Event::Window(baseview::WindowEvent::WillClose) => true,
        #[cfg(target_os = "macos")]
        baseview::Event::Keyboard(event) => {
            if event.code == keyboard_types::Code::KeyQ
                && event.modifiers == keyboard_types::Modifiers::META
                && event.state == keyboard_types::KeyState::Down
            {
                return true;
            }
            false
        }
        _ => false,
    }
}
pub fn requests_exit ( event : & baseview :: Event ) -> bool { match event { baseview :: Event :: Window ( baseview :: WindowEvent :: WillClose ) => true , # [ cfg ( target_os " " ) ] baseview :: Event :: Keyboard ( event ) => { if event . code == keyboard_types :: Code :: KeyQ && event . modifiers == keyboard_types :: Modifiers :: META && event . state == keyboard_types :: KeyState :: Down { return true ; } false } _ => false , } }
Returns true if the provided event should cause an [`Application`] to
exit.
Returns true if the provided event should cause an [ ` Application ` ] to exit .
event
&baseview::Event
event
&baseview::Event