diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-02-22 08:38:12 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-02-22 08:38:12 +0800 |
commit | 60592ae0d7a98e071e516fcac70c5bf1427f20be (patch) | |
tree | 270a0d44f14634f7519ba222bee6203d7ed4c6e8 /indra/llwindow/llwindowsdl.cpp | |
parent | 15e0231006838044b0315c19ed6a1b67a1da8e75 (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.cpp | 6 |
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; |