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

For user-agents on Windows OS, map the "windows key" to Meta (instead of "OS") #9

Closed
travisleithead opened this issue Oct 26, 2015 · 6 comments

Comments

@travisleithead
Copy link
Member

For KeyboardEvent.key values on Windows OS, use "Meta" (instead of "OS"). This is for 1) better interop with Mac, 2) enabling general use of the meta attribute on KeyboardEvent.

See discussion at: w3c/uievents#28 (comment)

@garykac
Copy link
Member

garykac commented Oct 26, 2015

@masayuki-nakano

@masayuki-nakano
Copy link

I emailed to Olli (smaug) about this issue.

@smaug----
Copy link

I doubt "OS" has gained much use yet. This is of course backwards incompatible change.
The idea is that also .meta will be true with Windows-key?

@travisleithead
Copy link
Member Author

Yes. Currently in IE9+ the .meta value is never true. :( I like the side-effect of making it work in Windows since it was a previously unused feature.

On backwards compatibility, yes, it is a breaking (not backwards-compatible) change. However, there is little current suspected use, and since IE9+ this has been the "Win" key name, so changing it to OS would be a breaking change for Edge too. I'd just assume go straight to "Meta".

@garykac garykac closed this as completed in 392450b Nov 4, 2015
@RByers
Copy link

RByers commented Apr 21, 2016

I did an httpArchive search (top 500k sites) and found exactly 0 uses of modifierOS and getModifierState("OS") so I agree this is safe to change.

@RByers
Copy link

RByers commented Apr 21, 2016

@travisleithead did you end up copying Chrome/Firefox here in Edge? Looks like it sets 'OS' now. We've removed this from Chrome to match the spec, and @dtapuska is now cleaning up the remaining code.

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

5 participants