fix: don't listen for captured events
This commit is contained in:
parent
ebf302cb44
commit
f2e7bd49a7
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ impl State {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn subscription(&self) -> Subscription<Message> {
|
fn subscription(&self) -> Subscription<Message> {
|
||||||
event::listen_with(|event, _status, _id| match event {
|
event::listen().filter_map(|event| match event {
|
||||||
Event::Keyboard(keyboard::Event::KeyPressed { key, modifiers, .. }) => {
|
Event::Keyboard(keyboard::Event::KeyPressed { key, modifiers, .. }) => {
|
||||||
Some(Message::KeyPressed(key, modifiers))
|
Some(Message::KeyPressed(key, modifiers))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue