diff options
| author | Erik Kundiman <erik@megapahit.org> | 2024-01-29 17:42:38 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2024-01-30 12:06:48 +0800 |
| commit | aaa8cb5a37a720ff67792d0a31fec793b03b3742 (patch) | |
| tree | 734ce89b2f133f1fd55cd04e5e79eb5c1ed06d50 /indra/newview/llviewerwindow.cpp | |
| parent | 4c97df0ab1b450d5680975e18e894b6676a589ee (diff) | |
First attempt to fix unicode input
It should work well enough with most, but on Japanese (I assume all CJK),
for now the composition part is still left printed out along with the result
(as opposed to just replaced by the result). It's to be fixed next.
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index ed671fe849..405da33bdf 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -3129,6 +3129,14 @@ BOOL LLViewerWindow::handleUnicodeChar(llwchar uni_char, MASK mask) return FALSE; } +BOOL LLViewerWindow::handleUnicodeString(char *uni_str) +{ + auto keyboard_focus = gFocusMgr.getKeyboardFocus(); + if (keyboard_focus) + keyboard_focus->handleUnicodeString(uni_str, FALSE); + + return TRUE; +} void LLViewerWindow::handleScrollWheel(S32 clicks) { |
