Fix broken numlock behavior

libcosmic broke backwards compatibility in pop-os/libcosmic@0491c4b
Add comparison with modified_key to ensure only actual named keys
are processed as such.
This commit is contained in:
Paul Daniel Faria 2025-01-07 22:55:14 -08:00 committed by Jeremy Soller
parent ea29bf979f
commit 25845183f1

View file

@ -693,10 +693,11 @@ where
match event {
Event::Keyboard(KeyEvent::KeyPressed {
key: Key::Named(named),
modified_key: Key::Named(modified_named),
modifiers,
text,
..
}) if state.is_focused => {
}) if state.is_focused && named == modified_named => {
for key_bind in self.key_binds.keys() {
if key_bind.matches(modifiers, &Key::Named(named)) {
return Status::Captured;