w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
681 stars 195 forks source link

NumpadEnter location property seems incorrect #1271

Open bwalderman opened 6 years ago

bwalderman commented 6 years ago

In chapter 17. Actions, section 17.4 Dispatching Actions:

\uE007 Enter 1

The spec indicates that key events dispatched for \uE007 "NumpadEnter" should have the location property set to 1. This key is located on the numpad though, so I would expect the location to be 3. This is consistent with a user pressing the real numpad Enter key on a US keyboard.

InstyleVII commented 6 years ago

@andreastt Thoughts here? Brandon hit this issue while implementing Actions.

andreastt commented 6 years ago

It looks like U+E007 maps to both Enter and NumpadEnter. I would assume this indicates that the spec doesn’t diffferentiate between them?

It’s unclear to me how one would press NumpadEnter if the lookup table maps the code point to Enter first. I’m sure there’s a historic reason for this that @shs96c would be better suited to answer.

bwalderman commented 6 years ago

It looks like U+E006 "Return" is meant to be the main Enter key.

InstyleVII commented 6 years ago

@AutomatedTester or @shs96c could one of you weigh in?