Use `KeyboardEvent.code` instead of `KeyboardEvent.keyCode`
Opened this issue · 0 comments
ankitprahladsoni commented
useCloseOnEscape
relies on the deprecated KeyboardEvent.keyCode
. It should be replaced with KeyboardEvent.code
since it is breaking tests with user-event@14
Relevant discussion: #testing-library/user-event#969