Commit 5110a64
committed
fix: record keystroke before typing core input processing
- Move record_keystroke() calls to execute before typing core processes input
- Ensures ScoringEngine receives correct position before it advances
- Previously scoring was broken because position had already advanced
- Fixes WPM, CPM, and accuracy calculations showing 0 values1 parent de29b0a commit 5110a64
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | 215 | | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | 221 | | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | 227 | | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments