Reproduction link

Steps to reproduce
- Load the sandbox
- Click
Show notification
- See that the close icon gets focus and turns red
- See that the notification is not closed after 1s (simulated keyboard event via timeout)
- (Optional) Simulate the click event and see that the notification gets closed after 1s
What is expected?
When close button has keyboard focus, pressing Enter on the keyboard should close the notification.
What is actually happening?
When close button has keyboard focus, pressing Enter on the keyboard does not close the notification.
| Environment |
Info |
| rc-notification |
4.6.0 |
| React |
18 |
| System |
ALL |
| Browser |
ALL |
Ref: UIEN-1752