Commit 05f4fa6
authored
fix: Wayland pynput v1.7.7 workaround (#106)
XWayland/Wayland does not reliably allow for capture of single key
strokes via keyboard event listener(s), but playing about showed
key-combos are _mostly_ caught quickly!
Also it seems on Arch Linux (I use Arch BTW™) the `key` object sent
through the `keyboard.listener` has a different _shape_, or perhaps the
inconsistencies in capture behaviors got me jumping to wrong-thinking.
Either way, these proposed changes _should_ preserve previously
programmed `key.char` detection, while also allowing those stuck with
Wayland to enjoy this tool.1 parent d3ba0c8 commit 05f4fa6
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
28 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
37 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments