On 11 March 2013 13:24, Florian Bösch <pyalot@gmail.com> wrote:
> On Mon, Mar 11, 2013 at 8:41 PM, Wez <wez@chromium.org> wrote:
>
>> The critical difference between "keyCode" and "code" is that the
>> prevalent implementation of "keyCode" uses Windows virtual-key codes, which
>> change for some keys depending upon layout. It's also implemented using
>> other completely different schemes by some browsers. So normative
>> documentation isn't really an option.
>>
>
> keyCode also has the following problems:
>
> - The same keyCode is issued for different physical keys
> - The same physical key emits different keyCode based on modifier keys
>
Which keys are you thinking of? keyCode changes for some keys based on
lock-states (the NumPad keys) but not for shift/ctrl/alt modifier-states.
- The keyCode cannot be converted to a users locale/layout/flavor of
> physical key cap
>