fix(keybinds): adapt key_bind.matches to new 3-arg signature
Some checks are pending
Validate .desktop files / validate (push) Waiting to run

Upstream libcosmic added an Option<&Physical> third parameter to
KeyBind::matches for physical-key matching. We pass None at every call
site since these paths only have the logical key available.

Also refresh Cargo.lock to satisfy the libcosmic-yoda squash rebase
absorbed on 2026-05-25.

Leyoda 2026 – GPLv3
This commit is contained in:
Lionel DARNIS 2026-05-25 14:27:37 +02:00
parent 91b1ad874d
commit b989d63c2e
2 changed files with 36 additions and 9 deletions

View file

@ -1233,7 +1233,7 @@ impl Application for App {
},
Message::Key(modifiers, key) => {
for (key_bind, action) in self.key_binds.iter() {
if key_bind.matches(modifiers, &key) {
if key_bind.matches(modifiers, &key, None) {
return self.update(action.message());
}
}