EVEN BETTERER
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user