Search Issue Tracker
By Design
Unknown (hidden) 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X
Votes
0
Found in
2020.3.37f1
2021.3.6f1
2022.1.9f1
2022.2.0b1
2023.1.0a3
Issue ID
UUM-8939
Regression
No
ToolbarSearchField value is not cleared when pressing Esc after refocusing
Reproduction steps:
1. Open the attached “ToolbarSearchFieldEscape“ project
2. Open the Reproduction window (Window > Reproduction)
3. Input some text into the field
4. Unfocus and refocus the field
5. Press the Esc key
Expected result: The field value is empty
Actual result: The field value is not empty
Reproduced with: 2020.3.37f1, 2021.3.6f1, 2022.1.9f1, 2022.2.0b1, 2023.1.0a3
Reproduced on: Windows 11, macOS 12.4 Darwin 21.5.0
Note: Esc seems to clear only the text entered during the latest focus
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
Hi, this is working as expected. Based on what’s documented in the Editor Foundations Design System:
- Pressing escape cancels current entry and reverts the field to the value it was before editing began (https://www.foundations.unity3d.com/components/text-field#Behavior:~:text=Keyboard%20interactions)
- If the field is selected and empty, and a value is typed while editing, hitting Esc would clear the field back to empty before returning to the focused state
- If the field is selected and contains a value which is modified (or removed) by typing, hitting Esc would revert the field back to the original value before returning to the focused state
Basically, Esc should mean “a shortcut to invoke a cancel action” or “cancelling an in-progress action” vs explicitly “clear this field”.
Resolution Note (2022.1.X):
Port canceled as we transition to 2022.2 (2022.2.X port is active or already resolved)
Resolution Note (2020.3.X):
No planned support for this version (LTS support still active)