Handle contexts correctly for disabled key bindings
This commit is contained in:
parent
a86f401a7c
commit
8a96562adf
5 changed files with 128 additions and 385 deletions
|
@ -260,8 +260,8 @@ impl MacPlatform {
|
|||
os_action,
|
||||
} => {
|
||||
let keystrokes = keymap
|
||||
.bindings_for_action(action.type_id())
|
||||
.find(|binding| binding.action().partial_eq(action.as_ref()))
|
||||
.bindings_for_action(action.as_ref())
|
||||
.next()
|
||||
.map(|binding| binding.keystrokes());
|
||||
|
||||
let selector = match os_action {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue