cli-testing-library icon indicating copy to clipboard operation
cli-testing-library copied to clipboard

Add support for Ctrl keys via `userEvent.keyboard`

Open nicklemmon opened this issue 9 months ago • 0 comments

Describe the feature you'd like:

Support for the [Ctrl] special key to help handle process cancelation

userEvent.keyboard('[Ctrl]c').

Suggested implementation:

Add the Ctrl keys to the keyMap.ts config

Describe alternatives you've considered:

There is no alternative that I am aware of - perhaps using fireEvent could work?

Teachability, Documentation, Adoption, Migration Strategy:

Documentation would need to be added to: https://cli-testing.com/guides/user-event/#keyboardinstance-text-options

nicklemmon avatar Apr 07 '25 15:04 nicklemmon