thumbtack/thumbprint

Use `KeyboardEvent.code` instead of `KeyboardEvent.keyCode`

Opened this issue · 0 comments

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