How to reproduce:
1. Create a new project
2. Select any GameObject in the Hierarchy window
3. In the Inspector window, press "Add Component"
4. In the opened list, select "New Script"
5. Name the script anything and press the "Enter" key
6. Observe the Inspector window
Actual result: The script is not saved after pressing the "Enter" key and the focus automatically changes to the search bar
Expected result: The script is saved after pressing the "Enter" key
Reproducible with: 6000.3.22f1, 6000.5.0a4, 6000.5.8f1, 6000.6.0b8, 6000.7.0a5
Not reproducible with: 6000.0.81f1, 6000.5.0a3
Reproducible on: Windows 10 (By user), Windows 11
Not reproducible on: No other environments tested
Workaround: Pressing the arrow down key switches the focus back to the script naming field and allows to save it by pressing “Enter”