master
Bel LaPointe 2023-03-22 18:10:59 -06:00
parent 3ef0a15ce4
commit 1bf32cf307
1 changed files with 4 additions and 1 deletions

View File

@ -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> {