Unity Issue Tracker - TMP_InputField does not trigger the "onEndEdit" event after pressing ESC when there is a ScrollBar attached to it
Closed
UUM-96982
TMP_InputField does not trigger the "onEndEdit" event after pressing ESC when there is a ScrollBar attached to it
Unity: Text (TextMeshPro)
Won't Fix
6.2.X
6.1.X
6.0.X
2022.3.X
This does look like a potential bug, however, given our priority on UI Toolkit going forward, we are only able to address more serious bugs and regressions on TMP.
How to reproduce:
1. Open the “BugReport.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Enable the bottom input field to edit it In the Game view
5. Type in anything and press the ESC key
6. Observe the Console (note that the log is thrown)
7. Clear the console
8. Enable the top input field to edit it In the Game view
9. Type in anything and press the ESC key
10. Observe the Console
Expected result: An empty info log is logged or the previous text is logged
Actual result: Nothing gets logged
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
The “onEndEdit“ event is not triggered when the ESC key is pressed on the InputField that has the ScrollBar
The InputField only appears to be active (caret is blinking), but pressing S will switch to the bottom InputField (like it would if it was selected, but not active), but the event is only sent when the top InputField becomes unselected
Prioritise and Follow this issue
Have a workaround or additional info about this issue?