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

Need 'Unspecified' value for KeyboardEvent.code #3

Closed
garykac opened this issue Oct 21, 2015 · 2 comments
Closed

Need 'Unspecified' value for KeyboardEvent.code #3

garykac opened this issue Oct 21, 2015 · 2 comments

Comments

@garykac
Copy link
Member

garykac commented Oct 21, 2015

From @garykac on October 7, 2015 0:26

The current spec doesn't define an 'Unspecified' value that can be used when the code value cannot be determined.

Having a separate value is important to be able to distinguish between 'not implemented' and 'implemented, but unable to determine code'.

Currently, we define 'Unspecified' for 'key', but don't have the equivalent text for 'code'.

Copied from original issue: w3c/uievents#20

@garykac
Copy link
Member Author

garykac commented Oct 21, 2015

From @masayuki-nakano on October 7, 2015 0:51

There are 3 cases of empty code value under current spec:

  1. The platform tells UAs a valid scancode or something but proper value for it isn't defined
  2. The platform does not tell valid scancode or anything.
  3. The key is caused by virtual keyboard or something non-physical keyboard.

It may be impossible to distinguish #2 and #3 if they causes same scancode or something, though. So, only #1 case could cause specific value?

@garykac
Copy link
Member Author

garykac commented Mar 6, 2016

s/Unspecified/Unidentified/

@garykac garykac closed this as completed in f2896af Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant