-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
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
Add a pressKey
helper?
#42
Comments
@leizhao4 did you notice the example in the README that shows keyEvent('.other-input', 'keyup', 40); // down arrow |
Actually having a single helper that simulates a full key interation (fires keydown, keyup and keypress in sequence) sounds reasonable, the same way I'd call it |
I created the |
Yes that's exactly what I mean. After playing around with keyboard events (in Chrome), it looks more complex than I expected and I think there's plenty of room for a new helper. The events seems to fire in this sequence:
Sources: There are also combinations, for example, a |
I'm in favor, though I would rather see |
Green light then for someone to implement it. |
How about adding a
pressKey
helper which fireskeydown
,keypress
and thenkeyup
?EDIT: Updated helper name.
The text was updated successfully, but these errors were encountered: