I DID it
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user