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:37 +02:00
parent 4d05e77e1b
commit 87128d72d6
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1393,7 +1393,7 @@ dependencies = [
[[package]]
name = "cosmic-freedesktop-icons"
version = "0.4.0"
source = "git+https://github.com/pop-os/freedesktop-icons#9c562fe3ecf03241a46a60c0078cd6ea10bd75ce"
source = "git+https://github.com/pop-os/freedesktop-icons#739e266210d471c09af61d529d8f41dccd815b90"
dependencies = [
"bstr",
"btoi",

View file

@ -2473,7 +2473,7 @@ impl Application for App {
// Handle configurable keys
for (key_bind, action) in &self.key_binds {
if key_bind.matches(modifiers, &key) {
if key_bind.matches(modifiers, &key, None) {
return self.update(action.message(None));
}
}

View file

@ -942,7 +942,7 @@ where
..
}) if state.is_focused && named == modified_named => {
for key_bind in self.key_binds.keys() {
if key_bind.matches(*modifiers, &Key::Named(*named)) {
if key_bind.matches(*modifiers, &Key::Named(*named), None) {
shell.capture_event();
return;
}
@ -1130,7 +1130,7 @@ where
..
}) if state.is_focused => {
for key_bind in self.key_binds.keys() {
if key_bind.matches(*modifiers, key) {
if key_bind.matches(*modifiers, key, None) {
shell.capture_event();
return;