Search Issue Tracker

Fixed

Fixed in 2022.3.17f1

Votes

0

Found in

2022.3.9f1

Issue ID

UUM-48682

Regression

Yes

New line is added to UI Toolkit’s TextField, and the “System.ArgumentOutOfRangeException“ error appears when using “PreventDefault" and “StopImmediatePropagation” if pressing the Enter key with the option/Shift key

--

-

How to reproduce:
1. Open the attached “TextFieldIssue.zip” project
2. Open “SampleScene” Scene (Assets > Scenes)
3. Enter Play Mode
4. Focus TextField
5. Hold the option button and press the Enter button few times on macOS, or hold the shift button and press the Enter button few times on Windows
6. Observe the TextField and Console window

Expected result: New line is not created in the Textfield, and there are no errors in the Console window
Actual result: New line is created in the Textfield, and there are “System.ArgumentOutOfRangeException” errors in the Console window

Reproducible with: 2022.2.0a14, 2022.2.21f1, 2022.3.9f1, 2023.1.0a19
Not reproducible with: 2021.3.30f1, 2022.2.0a13, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Fixed in: 2023.1.0a20

Reproduced on: macOS 13.4.1 (Intel), Windows 10 (user’s info)

Note: reproducible in the Editor and Standalone Player (macOS)

  1. Resolution Note (fix version 2022.3.17f1):

    Fixed in: 2022.3.17f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.