godot icon indicating copy to clipboard operation
godot copied to clipboard

Switching IME language mid-input keeps non-committed text visible on Wayland

Open Cykyrios opened this issue 1 year ago • 3 comments

Tested versions

v4.3.1.rc.custom_build [ff9bc0422]

System information

Godot v4.3.1.rc (ff9bc0422) - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Wed Aug 7 16:19:28 UTC 2024 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XT (RADV NAVI31) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)

Issue description

On the Wayland version of the editor, on KDE with fcitx5 as IME, I can switch between French and Japanese. When typing Japanese, I have to commit text when converting kanji for instance; if I go back to French with non-committed text, this text will follow the caret (see video below).

https://github.com/user-attachments/assets/75878b5c-4884-4618-bd7a-d46ee6438f0a

On X11, non-committed text is deleted.

Steps to reproduce

Write text in multiple languages, with at least one requiring committing text (like Japanese, probably Chinese as well, I don't know about other languages), and switch between languages with some uncommitted text. Reminder: the issue occurs on KDE, Wayland editor with fcitx5 IME.

Minimal reproduction project (MRP)

N/A

Cykyrios avatar Aug 28 '24 11:08 Cykyrios

I don't know is the same issue, but using fcitx to input chinese in TextEdit (linux mint 22 / godot 4.3 stable)

it will drain some character from ime randomly. (when selected a word from ime) and no keyboard event will triggered. (this will not happen in other applications )

It both effects the game and editor.

xianrenak avatar Dec 05 '24 18:12 xianrenak

This doesn't seem to happen anymore, was it fixed maybe by one of #100715, #101629 or #101684? (I didn't find other possibly relevant PRs after a quick search)

Cykyrios avatar Feb 02 '25 20:02 Cykyrios

I'm not sure if my issue #103180 related to yours. It seems the issue may not have been fully resolved yet.

MadeScientist avatar Feb 22 '25 21:02 MadeScientist

Since the issue is now resolved (tested again in 4.4.1 and 4.5 master), I will now close this. (sorry for the bump and edit, I forgot to read my previous message before typing...)

Cykyrios avatar Mar 29 '25 20:03 Cykyrios