Commit b9b7d28
committed
Select Word: Revise to avoid possible edge cases.
Motivated by #26,
this commit makes a few tweaks to avoid what look like bugs in certain
edge case situations. Thanks to @windhausen for reporting this:
* On initial press, always clear the non-Shift mods.
* Change uses of `register_code()` on mod keys to `register_mods()`.
* Change uses of `SEND_STRING` to `tap_code()` calls, since the former
is not supported on non-Latin layouts.
* Mac, don't use the Ctrl+A / Crtl+E , since KC_A and KC_E might be
remapped to other meanings if the OS is set to a non-US QWERTY layout.
Instead use GUI+Left / GUI+Right.
* Streamline to eliminate sending a unnecessary keyboard reports around
setting and clearing mods.1 parent 2abf74d commit b9b7d28
1 file changed
+25
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
82 | | - | |
83 | 90 | | |
84 | | - | |
| 91 | + | |
85 | 92 | | |
86 | | - | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | | - | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
0 commit comments