How to reproduce:
1. Open the “UiToolkitLayout.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Press the Space key on the keyboard multiple times
5. Observe the Button in the Game view
Expected result: The button has a red background
Actual result: The button has a gray background
Reproducible in: 2022.3.58f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a3
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- If “Blur()“ method is called before the “Focus()” method, pressing Space will yield expected results
- If the element is not unparented then reparented, pressing Space will yield the expected results
- The element is still considered the “focused“ element, but it’s just not visualized through the “:focus“ style
- Even when clicked manually, the button will not become red