Reconsider adaptive touch correction? Slimmer proposal with details
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
Piste de recherche
This is a design proposal, not a ready task. Read the maintainer's earlier concerns in #671 and the open pull request #680 before anything else. The payload names InputLogic as the core file the change touches, plus a separate statistics package with 17 tests. Done means the maintainers have agreed on a design, not that a patch exists. Wait for that decision before starting code.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Thanks again for reviewing #671. I'd like to explain the feature in more detail and offer a much slimmer version, because I think it addresses your concerns.
Why it matters
I'm an experienced, heavy phone typist. Still, over ~1,250 recorded touches about 13% landed on a neighboring key — roughly every 8th letter. And it's systematic, not random: "a" hit as "s" is consistently my most frequent miss. A fixed, per-user offset like this is exactly what adaptive touch correction fixes, and as far as I know it has been standard in mobile keyboards for many years.
What it does
The keyboard learns where this user actually touches each key, based on the words they finally commit (including reverted autocorrections and self-corrections). Once a key has enough data (30+ touches), a touch near the border between two keys is assigned to the key the user most likely meant. The shift is capped to a fraction of a key width, and the dictionary receives the corrected coordinates too.
Your concerns
- Determinism: same data, same key. It only differs from today near key borders and only after enough data. With the feature off, the exact current code path runs.
- Latency: per touch a few arithmetic operations on cached offsets, no I/O.
- Muscle memory: it adapts to the user's muscle memory instead of changing it.
- Code footprint: of the ~1.5k lines, ~1.45k are in a separate package (model, statistics screen, 17 tests). Core changes are ~115 lines.
Slimmer proposal
- One single switch ("Adapt to my typing"), fixed strength, no other settings.
- Move all recording logic out of InputLogic into the separate package, leaving ~60 lines of hooks in core.
- Optional: drop the statistics screen if you prefer.
If you're still not convinced, no problem — I'll keep it in my fork.
- Langage dominant
- Kotlin
- Étoiles
- 1k
- Forks
- 59
- Merge moyen
- 14 h 46 min
- PR mergées (30 j)
- 56
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de LeanBitLab/LeanType
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 22/100
LeanBitLab/LeanType#743 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 45/100
LeanBitLab/LeanType#738 ·
Les mainteneurs répondent en général sous 1 jour
-
Improve Persian diacritics and Alef popupsPeut-être pris @LeanBitLab l’a pris il y a 2 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 66/100
LeanBitLab/LeanType#732 · 6 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Add more symbol layoutsOuverteenhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 70/100
LeanBitLab/LeanType#724 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 56/100
LeanBitLab/LeanType#721 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de LeanBitLab/LeanType
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
OpenAPITools/openapi-generator#25454 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
navikt/mock-oauth2-server#1149 ·
Les mainteneurs répondent en général sous 1 jour
-
priority: high scope: frontend type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
GonsiorHack/czyPrzejade#12 ·
-
afk-ok area:frontend size:S
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
enorm-labs/event-junkie#4154 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
pengchujin/aerial-tv#857 ·
Les mainteneurs répondent en général sous 1 jour