EVEN BETTERER

master
Bel LaPointe 2023-03-22 18:12:23 -06:00
parent 1bf32cf307
commit dffb38e6a8
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ impl Application for Main {
}
fn subscription(&self) -> Subscription<Message> {
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,
});
}