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:
parent
ea29bf979f
commit
25845183f1
1 changed files with 2 additions and 1 deletions
|
|
@ -693,10 +693,11 @@ where
|
||||||
match event {
|
match event {
|
||||||
Event::Keyboard(KeyEvent::KeyPressed {
|
Event::Keyboard(KeyEvent::KeyPressed {
|
||||||
key: Key::Named(named),
|
key: Key::Named(named),
|
||||||
|
modified_key: Key::Named(modified_named),
|
||||||
modifiers,
|
modifiers,
|
||||||
text,
|
text,
|
||||||
..
|
..
|
||||||
}) if state.is_focused => {
|
}) if state.is_focused && named == modified_named => {
|
||||||
for key_bind in self.key_binds.keys() {
|
for key_bind in self.key_binds.keys() {
|
||||||
if key_bind.matches(modifiers, &Key::Named(named)) {
|
if key_bind.matches(modifiers, &Key::Named(named)) {
|
||||||
return Status::Captured;
|
return Status::Captured;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue