https://bugs.kde.org/show_bug.cgi?id=492225
Bug ID: 492225 Summary: text-input-v3: kwin does not send empty preedit when backspace is pressed after composing one character. Classification: Plasma Product: kwin Version: 6.1.4 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: input Assignee: kwin-bugs-n...@kde.org Reporter: o...@igalia.com Target Milestone: --- SUMMARY text-input-v3: kwin does not send empty or null preedit when backspace is pressed after a single character is composed. STEPS TO REPRODUCE 1. With WAYLAND_DEBUG=1 and filtering for text-input-v3 logs, open any app that uses text-input-v3 and focus an input field 2. Switch language to enable IME (e.g. japanese anthy) 3. Enter a character, e.g. 'a' 4. Press backspace OBSERVED RESULT 3. The preedit string is received: ``` zwp_text_input_v3#44.preedit_string("あ", 3, 3) zwp_text_input_v3#44.done(31) ``` 4. Only `done` is received: ``` zwp_text_input_v3#44.done(31) ``` EXPECTED RESULT 3. Should be same as seen 4. Another `preedit` and `done` should be received: ``` zwp_text_input_v3#44.preedit_string("", 0, 0) zwp_text_input_v3#44.done(31) ``` SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.1.4 ADDITIONAL INFORMATION When backspace is pressed after two characters are entered, it correctly sends the new preedit with the single character. In text-input-v1 it does send an empty preedit string when backspace is entered. ``` zwp_text_input_v1#44.preedit_string(0, "", "") ``` Also, gnome sends a nil preedit string in text-input-v3 as well: ``` zwp_text_input_v3#40.preedit_string(nil, 0, 0) zwp_text_input_v3#40.done(514) ``` -- You are receiving this mail because: You are watching all bug changes.