davidsansome / tsurukame

Tsurukame is an unofficial WaniKani app for iOS. It helps you learn Japanese Kanji.
https://tsurukame.app
Apache License 2.0
264 stars 63 forks source link

Bug: Japanese text input moves focus to end when inserting kana #743

Open 12joan opened 3 months ago

12joan commented 3 months ago

Description On the Japanese text input, when the user finishes inserting a kana, the cursor moves to the end of the input. If the user isn't paying attention, this can result in entering the answer incorrectly.

Steps to reproduce

  1. Focus the Japanese text input
  2. Type "kanji" - it is converted live to かんじ
  3. Select か
  4. Type "ka" - it is converted to か
  5. The cursor moves to the end of the input

Demo

https://github.com/user-attachments/assets/a69a0520-15f6-499f-b348-73932c87b262

Expected behaviour The cursor should remain after か but before んじ.

Additional information I can reproduce this issue on both macOS and iOS. On macOS, I'm using version 1.32.2 (1064).