Wayland: avoid replacing text with empty string (#8103)
Fix an issue where the `ime_key` is sometimes an empty string, and
pressing a keystroke replaces the selected text.
E.g. select some text, press `Escape`: selected text is deleted.
946f4a312aRom Grk committed on 2/22/2024, 5:48:15 PM· committed by GitHubparentaf06063