diff --git a/src/gui.rs b/src/gui.rs index 2b27508..aeb74fc 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -107,8 +107,8 @@ impl Application for Main { } fn subscription(&self) -> Subscription { - return subscription::events_with((|event| match (event) { - Event::Keyboard(x) => Some(x), + return subscription::events_with(|event, _| match event { + iced::Event::Keyboard(x) => Some(Message::EventOccurred(event)), _ => None, }); }