select icon indicating copy to clipboard operation
select copied to clipboard

`event.which` is deprecated which causes issues when using @testling-library/user-event v14

Open kapiljaveri opened this issue 1 year ago • 1 comments

https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which

Issue found here - https://github.com/testing-library/user-event/issues/1137

It's recommended to switch over to event.code or event.key instead - https://github.com/testing-library/user-event/issues/842#issuecomment-1019528148

kapiljaveri avatar Aug 30 '23 04:08 kapiljaveri

Probably looks like we also need to change - https://github.com/react-component/util/blob/master/src/KeyCode.ts

kapiljaveri avatar Aug 30 '23 04:08 kapiljaveri