Unidentified set as KeyboardEvent.key for KP_Begin
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
People
(Reporter: ossman, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
Press the 5 key with NumLock off
Actual results:
I got a keydown event with key set to "Unidentified"
Expected results:
I got a keydown event with key set to "Clear"
Reporter | ||
Comment 1•5 years ago
|
||
The specification doesn't list anything that perfectly matches KP_Begin, but Chrome uses "Clear" so that's as good as any. Probably because that key gives VK_Clear on Windows.
Note that this might cause some confusion on macOS where NumLock is replaced with a Clear button. I haven't investigated the details there yet.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
(In reply to Pierre Ossman from comment #1)
The specification doesn't list anything that perfectly matches KP_Begin, but Chrome uses "Clear" so that's as good as any. Probably because that key gives VK_Clear on Windows.
Note that this might cause some confusion on macOS where NumLock is replaced with a Clear button. I haven't investigated the details there yet.
Yeah, we also use Clear
as key value of numpad-5 on Windows. It's an option to use same value. But I should ask the editor first.
Updated•2 years ago
|
Description
•