From dffb38e6a84e443242996c8f56df12c06429bc9f Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Wed, 22 Mar 2023 18:12:23 -0600 Subject: [PATCH] EVEN BETTERER --- src/gui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }); }