diff --git a/src/main.rs b/src/main.rs index ac77cc2..92df4c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] use std::sync::{Arc, Mutex}; use std::thread::sleep; use std::time::Duration; @@ -149,7 +150,7 @@ fn callback(event: Event, state: &mut Arc>) { let mut state = state.lock().unwrap(); if let EventType::KeyRelease(key) = event.event_type { - if key == Key::Escape { + if key == Key::End { state.shutdown = true; return; }