EVEN BETTERER
parent
1bf32cf307
commit
dffb38e6a8
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue