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