diff --git a/src/gui.rs b/src/gui.rs index 2384319..2d87721 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -150,7 +150,18 @@ impl Application for Main { _ => {}, } }, - Message::EventOccurred(_) => {}, + Message::EventOccurred(event) => { + match event { + iced::event::Event::Keyboard(keyboard::Event::KeyPressed{ + key_code, + modifiers: _, + .. + }) => { + println!("pushed {}", key_code); + }, + _ => {}, + } + }, _ => { self.configuring = Some(msg.clone()); self.ntfy = format!("push a key to bind to {:?}", msg.clone());