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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution 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)