I DID it
parent
3ef0a15ce4
commit
1bf32cf307
|
|
@ -107,7 +107,10 @@ impl Application for Main {
|
|||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Message> {
|
||||
return subscription::events().map(Message::EventOccurred)
|
||||
return subscription::events_with((|event| match (event) {
|
||||
Event::Keyboard(x) => Some(x),
|
||||
_ => None,
|
||||
});
|
||||
}
|
||||
|
||||
fn view(&self) -> Element<Message> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue