Commit c04c2c7
committed
Fix Kitty Keyboard
The Kitty keyboard spec supports caps_lock and num_lock as well. The
main bug here was a copy-paste where HYPER AND META were both shifted
to the same value (`1 << 5`). This change fixes both issues. We also
switch to using the same numerical values as the spec, both for
symmetry with the spec but also to keep the value within a u8.
https://sw.kovidgoyal.net/kitty/keyboard-protocol/#modifiersModifiers bitflags1 parent 5435c2d commit c04c2c7
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
0 commit comments