fix(libcosmic): fix item highlight in wayland context menu

This commit is contained in:
Hojjat Abdollahi 2026-05-28 13:10:17 -06:00 committed by GitHub
parent 91fd140ae3
commit f5cbed08d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 39 deletions

View file

@ -943,7 +943,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), Some(&physical_key)) {
if key_bind.matches(*modifiers, &Key::Named(*named), Some(physical_key)) {
shell.capture_event();
return;
}
@ -1133,7 +1133,7 @@ where
..
}) if state.is_focused => {
for key_bind in self.key_binds.keys() {
if key_bind.matches(*modifiers, key, Some(&physical_key)) {
if key_bind.matches(*modifiers, key, Some(physical_key)) {
shell.capture_event();
return;