[Bug]: CJK Japanese input resets to Chinese after switching apps (physical keyboard)
维护者通常 1 天内回复
@LeanBitLab 已经在做这个了。
开始于 2026年11月15日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Kotlin
- 星标
- 1k
- 派生
- 59
- 平均合并
- 5 小时 44 分钟
- 30 天内合并 PR
- 59
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LeanBitLab/LeanType 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
LeanBitLab/LeanType#864 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 56/100
LeanBitLab/LeanType#861 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
LeanBitLab/LeanType#853 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
LeanBitLab/LeanType#852 · 2 条评论 ·
维护者通常 1 天内回复
-
Notes未关闭documentation
难度 3/5 1-3 小时 新手友好度 15/100
LeanBitLab/LeanType#804 ·
维护者通常 1 天内回复
查看 LeanBitLab/LeanType 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 61/100
PixelPlayerHQ/PixelPlayerOSS#249 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 66/100
streetcomplete/StreetComplete#7395 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
134130/intellij-mise#552 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 66/100
wasi-master/wmkeyboard#1443 ·