EVEN BETTERER

This commit is contained in:
Bel LaPointe
2023-03-22 18:12:23 -06:00
parent 1bf32cf307
commit dffb38e6a8

View File

@@ -107,8 +107,8 @@ impl Application for Main {
} }
fn subscription(&self) -> Subscription<Message> { fn subscription(&self) -> Subscription<Message> {
return subscription::events_with((|event| match (event) { return subscription::events_with(|event, _| match event {
Event::Keyboard(x) => Some(x), iced::Event::Keyboard(x) => Some(Message::EventOccurred(event)),
_ => None, _ => None,
}); });
} }