add physical_key to key subscriptions
This commit is contained in:
parent
3fc85b900d
commit
86083d8ec8
8 changed files with 29 additions and 17 deletions
|
|
@ -58,7 +58,7 @@ impl Layout {
|
|||
fn subscription(&self) -> Subscription<Message> {
|
||||
use keyboard::key;
|
||||
|
||||
keyboard::on_key_release(|key, _modifiers| match key {
|
||||
keyboard::on_key_release(|key, _physical_key, _modifiers| match key {
|
||||
keyboard::Key::Named(key::Named::ArrowLeft) => {
|
||||
Some(Message::Previous)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue