Commit b15b49f
fix: physical keyboard handling in mnemonic entry + trackball sensitivity
Mnemonic word entry only understood the on-screen keyboard:
- letters: the screen posts uppercase A-Z, but the T-Deck keyboard sends
lowercase ascii, so typed letters were ignored; accept either case
- enter: the on-screen enter button is inactive during mnemonic entry,
but a physical keyboard can post BTN_KEYBOARD_ENTER at any time, which
set done_entering_words early and tripped the words_entered==nwords
assert (mnemonic.c:865); only honour enter when the on-screen button
would be active
- letter validity: the on-screen keyboard disables letters that match no
word, a physical keyboard cannot - reject letters yielding a stem with
no matching words (previously would trip the possible_words>0 assert)
Also halve trackball sensitivity: require 2 edges per scroll step, with
the accumulator reset on direction change or a 300ms pause.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent ab4399a commit b15b49f
2 files changed
Lines changed: 36 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
82 | 91 | | |
83 | | - | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
89 | 108 | | |
90 | 109 | | |
91 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
825 | 827 | | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
826 | 831 | | |
827 | | - | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
828 | 839 | | |
829 | 840 | | |
830 | 841 | | |
| |||
0 commit comments