From 526abaccbedbd3b78aa28c53a33d7add5a649d61 Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Thu, 8 Feb 2024 12:37:48 +0100 Subject: [PATCH] Add remark on SDL_StartTextInput() --- source/Irrlicht/CIrrDeviceSDL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Irrlicht/CIrrDeviceSDL.cpp b/source/Irrlicht/CIrrDeviceSDL.cpp index 93bd1d1d..72f1b8c3 100644 --- a/source/Irrlicht/CIrrDeviceSDL.cpp +++ b/source/Irrlicht/CIrrDeviceSDL.cpp @@ -219,6 +219,10 @@ void CIrrDeviceSDL::resetReceiveTextInputEvents() { gui::IGUIElement *elem = GUIEnvironment->getFocus(); if (elem && elem->acceptsIME()) { + // IBus seems to have an issue where dead keys and compose keys do not + // work (specifically, the individual characters in the sequence are + // sent as text input events instead of the result) when + // SDL_StartTextInput() is called on the same input box. core::rect pos = elem->getAbsolutePosition(); if (!lastElemPos || *lastElemPos != pos) {