Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.1.9f1
Issue ID
1071570
Regression
No
[OSX][InputField] OnEndEdit omits the last composition character when using Korean IME
When typing Korean, the last composition letter typed to InputField is omitted when User query "GetComponent<InputField>().text". Typing "개개개개개" or other symbols and pressing Enter the value that is printed to the console is "개개개개", and the last "개" just disappears from the InputField. When User selects the Text from InputField and tries typing more Korean letters He gets errors "ArgumentOutOfRangeExceptions: Cannot be negative." The User tried appending Input.compositionString to the text, but that doesn't help.
To reproduce:
1. Download project from the attached link and open in Unity
2. Open "SampleScene" scene
3. Enter Play mode
4. Type "개개개개개" or "내내내내내" (Type "rororororo" or "sososososo" with Korean IME enabled), and then press Enter
5. Observe that Console will only print "개개개개" or "내내내내". And the last character "개" or "내" will disappear from InputField
To reproduce from a scratch:
1. Open Unity and create a new project
2. In an empty scene, create an InputField.
3. Attach this simple script to InputField:
"public void OnEndEdit() {
print(GetComponent<InputField>().text);
}"
4. In Inspector, set InputField's "On End Edit" to the script's OnEndEdit() function
5. Enter Play mode
6. Type "개개개개개" or "내내내내내" (Type "rororororo" or "sososososo" with Korean IME enabled), and then press Enter
7. Observe that Console will only print "개개개개" or "내내내내". And the last character "개" or "내" will disappear from InputField
Notes:
- Project download link is in Comments section
- This issue appears only on OSX
- Could not check if this issue reproduces on Windows because https://issuetracker.unity3d.com/issues/unity-does-not-support-korean-input-in-the-editor issue blocks testing
- Clicking on the InputField to select the currently-typed letters and then trying to type "개개개개" or "내내내내" again spams multiple "ArgumentOutOfRangeExceptions: Cannot be negative" errors in the Console
Reproduced on Unity 2017.1.5f1, 2017.2.3p3, 2017.3.2f1, 2017.4.9f1, 2018.1.9f1, 2018.2.5f1 and 2018.3.0a9
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2019.1.X):
Low priority defect for the moment. This bug is unlikely to be fixed in the near future.