We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://codesandbox.io/s/userevent-keyboard-modifiers-gt0n61?file=/src/App.test.js
Modifiers like [ShiftLeft] switch on the appropriate modifier state before keydown and switch off the modifier state before keyup.
[ShiftLeft]
keydown
keyup
Modifier locks like [CapsLock] switch on the modifier state after the keydown and turn off the the modifier state after keyup.
[CapsLock]
Shift modifier state is not applied. (shiftKey is applied correctly.)
Shift
shiftKey
CapsLock modifier state is switched like a non-lock key.
CapsLock
14.3.0
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
No response
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 14.4.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reproduction example
https://codesandbox.io/s/userevent-keyboard-modifiers-gt0n61?file=/src/App.test.js
Prerequisites
Expected behavior
Modifiers like
[ShiftLeft]
switch on the appropriate modifier state beforekeydown
and switch off the modifier state beforekeyup
.Modifier locks like
[CapsLock]
switch on the modifier state after thekeydown
and turn off the the modifier state afterkeyup
.Actual behavior
Shift
modifier state is not applied. (shiftKey
is applied correctly.)CapsLock
modifier state is switched like a non-lock key.User-event version
14.3.0
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response
The text was updated successfully, but these errors were encountered: