You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 5.6.2. Keyboard Event Key Location section (source) has a table of several keys that have different locations, and a list of all the possible (and known) values for .location for such keys. It also says:
However, the Insert and Delete keys are missing from that table. Those keys are traditionally together with Home/End and Page Up/Down; and they are also available as Numpad0 and NumpadDecimal.
Additionally, both Firefox and Chrome (on Linux) report Insert and Delete with .location = 3 (DOM_KEY_LOCATION_NUMPAD), deviating from the current draft. Thus, I believe the lack of those keys in the UI Events spec was a mistake. (I have not tested on any other system.)
Upon further inspection of uievents-code spec, there are more numpad keys, such as ,, = and Clear. (Although the note says Clear should be encoded as NumLock.) I believe those keys are also missing from the 5.6.2 section, and they should probably return DOM_KEY_LOCATION_NUMPAD. I'm not sure what is the current behavior, as I have access to neither Mac nor Brazil-ABNT keyboard nowadays.
The 5.6.2. Keyboard Event Key Location section (source) has a table of several keys that have different locations, and a list of all the possible (and known) values for
.location
for such keys. It also says:However, the
Insert
andDelete
keys are missing from that table. Those keys are traditionally together with Home/End and Page Up/Down; and they are also available asNumpad0
andNumpadDecimal
.Additionally, both Firefox and Chrome (on Linux) report
Insert
andDelete
with.location = 3
(DOM_KEY_LOCATION_NUMPAD
), deviating from the current draft. Thus, I believe the lack of those keys in the UI Events spec was a mistake. (I have not tested on any other system.)You can test the behavior yourself by disabling NumLock and trying those keys on either https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html or https://codepen.io/denilsonsa/pen/epmoma
The text was updated successfully, but these errors were encountered: