Repository navigation
Commit d570acd
committed
fix(tui): ignore key repeats and re-entry in voice push-to-talk
Review follow-up: holding the key fired the press binding on every
key repeat, toggling the recorder on and off; presses during device
enumeration raced past the recording check. Key repeats are now
ignored via the event type, and a starting flag guards the
enumeration window. The fake test recorder backgrounds its sleep so
the INT trap fires immediately.1 parent 81c2065 commit d570acd
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
955 | 957 | | |
956 | 958 | | |
957 | 959 | | |
| 960 | + | |
958 | 961 | | |
959 | | - | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
960 | 966 | | |
961 | 967 | | |
962 | 968 | | |
963 | 969 | | |
| 970 | + | |
964 | 971 | | |
965 | 972 | | |
966 | 973 | | |
967 | 974 | | |
| 975 | + | |
| 976 | + | |
968 | 977 | | |
| 978 | + | |
969 | 979 | | |
970 | 980 | | |
971 | 981 | | |
| |||
1025 | 1035 | | |
1026 | 1036 | | |
1027 | 1037 | | |
1028 | | - | |
| 1038 | + | |
1029 | 1039 | | |
1030 | 1040 | | |
1031 | 1041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
0 commit comments