summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowsdl.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-02-22 08:38:12 +0800
committerErik Kundiman <erik@megapahit.org>2024-02-22 08:38:12 +0800
commit60592ae0d7a98e071e516fcac70c5bf1427f20be (patch)
tree270a0d44f14634f7519ba222bee6203d7ed4c6e8 /indra/llwindow/llwindowsdl.cpp
parent15e0231006838044b0315c19ed6a1b67a1da8e75 (diff)
IME composition is now replaced by the result
instead of being printed alongside. For now, it always gets reset from the start after pressing Return, which is to be fixed next.
Diffstat (limited to 'indra/llwindow/llwindowsdl.cpp')
-rw-r--r--indra/llwindow/llwindowsdl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index bbc966fb25..f56b6bfa7b 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -1893,12 +1893,12 @@ void LLWindowSDL::gatherInput()
break;
case SDL_TEXTINPUT:
- mCallbacks->handleUnicodeString(event.text.text);
+ mCallbacks->handleUnicodeString(event.text.text, false);
break;
case SDL_TEXTEDITING:
- mCallbacks->handleUnicodeString(event.edit.text);
- break;
+ mCallbacks->handleUnicodeString(event.edit.text, true);
+ break;
case SDL_KEYUP:
mKeyScanCode = event.key.keysym.scancode;