fix(keybinds): adapt key_bind.matches to new 3-arg signature

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:36 +02:00
parent 2e9729a978
commit 4c30e5e3b7
2 changed files with 315 additions and 219 deletions

532
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2127,7 +2127,7 @@ impl Application for App {
} }
Message::Key(modifiers, key) => { Message::Key(modifiers, key) => {
for (key_bind, action) in self.key_binds.iter() { 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(None)); return self.update(action.message(None));
} }
} }