Reproduction steps:
1. Create a new project
2. Create any GameObject (e.g. GameObject > Create Empty)
3. Select created GameObject and open the Search window (Window > Search > New Window)
4. Enter “component” into the search field
5. Make sure GameObject is still selected and select any Search window result (e.g. Animation or Animator)
6. Press the Enter key to add the Component to the GameObject
Actual result: “Can't add the same component multiple times!” pop-up appears and the Component is added only after pressing “Cancel” button
Expected result: Component is added to the GameObject
Reproducible with: 6000.5.0a9, 6000.5.0b7, 6000.6.0a4
Not reproducible with: 6000.0.74f1, 6000.3.14f1, 6000.4.6f1, 6000.5.0a8
Reproduced on: Windows 11, macOS Tahoe 26.4 (M4)
Note: Issue is not reproducible when adding the Component via Inspector or by double-clicking the search result