Re: [uievents] Whethere KeyboardEvent.location depends on .code or .key? (#62)

I've viewed the location field as a way to disambiguate between 2 keys that share the same value.

Since 2 keys cannot (by definition) share the same |code|, this field only seems to make sense for |key| values. I would expect the remapping to change the |location| as part of the remapping.

It also seems very wrong to have the Control (or Shift, or Alt) key with a |location| of STANDARD. I imagine that would break sites that assume:

    if (location == left) {
        /* left */
    } else {
        /* right */
    }



---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/62#issuecomment-161367176

Received on Wednesday, 2 December 2015 17:10:09 UTC