Skip to content
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

"Firing a synthetic mouse event" has steps that might not make sense for .click() #4452

Open
domenic opened this issue Mar 26, 2019 · 0 comments

Comments

@domenic
Copy link
Member

domenic commented Mar 26, 2019

https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin:windoworworkerglobalscope-5

  1. Initialize event's ctrlKey, shiftKey, altKey, and metaKey attributes according to the current state of the key input device, if any (false for any keys that are not available).

and

  1. event's getModifierState() method is to return values appropriately describing the current state of the key input device.

I kind of doubt that if I hold down Ctrl while the page calls .click(), that the resulting event will have ctrlKey set. If that is true (and we should test), it's quite surprising and the spec should note it.

If it's not true, as I suspect, then we need to fix up the definition of .click().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant