[Bug]: CJK Japanese input resets to Chinese after switching apps (physical keyboard)
Les mainteneurs répondent en général sous 1 jour
@LeanBitLab y travaille déjà.
Depuis le 15/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Preliminary Verification
- I have searched existing open and closed issues and discussions to verify this bug is not already reported.
- I have tested or verified this behavior on the latest release or beta version.
- I have tried clearing app cache or testing with default settings.
- If the issue is related to an external plugin (e.g. Voice Plugin, OCR, CJK, Handwriting, Offline AI), I have verified that I am using the latest release of that plugin.
Description of the Bug
Device / Setup
- Device: Unihertz Titan 2 Elite
- Input: Built-in physical QWERTY keyboard
- Keyboard: LeanType (version: to be filled in)
- CJK Plugin: v1.0.2
- Languages: Japanese (QWERTY) enabled
Bug Description
Japanese Romaji-to-Kana/Kanji conversion works correctly immediately after reinstalling the CJK plugin or using LeanType's Restart keyboard option.
However, after switching to another app, Japanese conversion stops working and the CJK engine appears to default to Chinese Pinyin instead.
Additionally, pressing Ctrl + Space on the physical keyboard causes the LeanType toolbar to appear.
Steps to Reproduce
- Enable Japanese QWERTY and install the CJK plugin.
- Restart LeanType via About → Restart keyboard.
- Type
nihongoand observe correct Japanese conversion (日本語). - Switch to another app.
- Try typing Japanese again.
- The suggestions now appear in Chinese instead of Japanese.
- Press Ctrl + Space to switch languages. The toolbar also appears unexpectedly.
Expected Behavior
- Japanese input should remain active across app switches.
- Romaji-to-Kana/Kanji conversion should continue working.
- Ctrl + Space should switch languages without unexpectedly showing the toolbar.
Actual Behavior
- Japanese conversion works temporarily after restarting LeanType or reinstalling the plugin.
- Switching apps causes Japanese conversion to stop working and Chinese Pinyin suggestions to appear.
- Ctrl + Space causes the toolbar to appear.
Additional Information
The Japanese dictionary appears to be working correctly because Japanese conversion works immediately after restarting the keyboard. This suggests a possible issue with CJK engine initialization or language-state persistence across input sessions.
Reinstalling the plugin is not a permanent fix.
Steps to Reproduce
see above
Expected Behavior
see above
Logs / Crash Report
No response
Build Flavor
Standard (with local AI, voice, and OCR support)
App Version
latest
Plugin Version (if applicable)
No response
Device & Android Version
see aboe
Target App (if applicable)
No response
Screenshots or Screen Recordings
No response
- Langage dominant
- Kotlin
- Étoiles
- 1k
- Forks
- 59
- Merge moyen
- 5 h 44 min
- PR mergées (30 j)
- 59
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é 2/5 1-3 heures Accessibilité débutants 68/100
LeanBitLab/LeanType#864 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 56/100
LeanBitLab/LeanType#861 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
LeanBitLab/LeanType#853 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
LeanBitLab/LeanType#852 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
NotesOuvertedocumentation
Difficulté 3/5 1-3 heures Accessibilité débutants 15/100
LeanBitLab/LeanType#804 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de LeanBitLab/LeanType
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 61/100
PixelPlayerHQ/PixelPlayerOSS#249 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
streetcomplete/StreetComplete#7395 ·
Les mainteneurs répondent en général sous 1 jour
-
Replace the deprecated `RubySdkType.getAllValidRubySdks()` call in `MiseRubyProjectSdkSetup`Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
134130/intellij-mise#552 ·
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
wasi-master/wmkeyboard#1443 ·