[Bug]: CJK Japanese input resets to Chinese after switching apps (physical keyboard)

Đang mở
#842 18 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@LeanBitLab đang làm issue này rồi.

Từ ngày 15/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
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
  1. Enable Japanese QWERTY and install the CJK plugin.
  2. Restart LeanType via About → Restart keyboard.
  3. Type nihongo and observe correct Japanese conversion (日本語).
  4. Switch to another app.
  5. Try typing Japanese again.
  6. The suggestions now appear in Chinese instead of Japanese.
  7. 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

Ngôn ngữ chính
Kotlin
Star
1k
Fork
59
Merge trung bình
5 giờ 44 phút
Pull request đã merge (30 ngày)
59

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LeanBitLab/LeanType

Tất cả issue của LeanBitLab/LeanType

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.