#15987·SDL

[wayland - zwp_text_input_v3] - `delete_surrounding_text` event not handled

Author: A1029384756Created Jul 13, 2026Updated Sep 30, 2026

When testing support for KDE Plasma's "Press-and-hold for special characters" feature, I noticed that upon insertion of the special character, no signal was provided by SDL that would tell me that I needed to delete the previous character.

That event should be issued by text_input_delete_surrounding_text in SDL_waylandevents.c but when looking at doing that, the existing definition for an SDL_TextEditingEvent doesn't have the capability to signal text removal (at least in the "relative to cursor" style that the Wayland extension provides).