Search Issue Tracker
Won't Fix
Votes
1
Found in
5.4.1f1
Issue ID
850804
Regression
No
User must press "enter" twice in the "InputField" to trigger EventTriggerType.Submit
To reproduce:
1. Open attached project "EventTriggerSubmit".
2. Open Console window, and play "test" scene.
3. Enter anything in the "input field".
4. Press "enter" (return) key.
5. If you didn't get any message in Console window and text in the InputField is not red, it means that EventTriggerType.Submit was not called, now press "enter" again.
Expected result: First time you press enter, EventTriggerType.Submit is called.
Actual result: You need to press enter twice, for EventTriggerType.Submit to be called.
Reproducible with: 5.2.3f1, 5.3.2f1, 5.4.1f1, 5.5.0f1, 5.6.0a3
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
bamcd0313
Nov 01, 2022 17:58
Use Input.GetKeyDown(KeyCode.Return)
instead of Input.GetKey(KeyCode.Return) or Input.GetKeyUp(KeyCode.Return)