w3c / w3c/webdriver

Key action primitives reference deprecated "which", "charCode", "keyCode" properties of KeyboardEvent

Open
#1,302 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Perform Actions
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Both keyDown and keyUp action primitives reference properties from KeyboardEvent which are marked as deprecated.

https://w3c.github.io/webdriver/#dfn-dispatch-a-keydown-action
https://w3c.github.io/webdriver/#dfn-dispatch-a-keyup-action

  1. Let charCode, keyCode and which be the implementation-specific values of the charCode, keyCode and which properties appropriate for a key with key key and location location on a 102 key US keyboard, following the guidelines in [UI-EVENTS].

But all of them are marked as deprecated:
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

As such we shouldn't require implementations to make use of those properties.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the keyDown and keyUp action definitions in the WebDriver specification and compare their requirements with the linked UI Events guidance and KeyboardEvent documentation. The issue is done when the specification no longer requires implementations to use the deprecated charCode, keyCode, and which properties.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.