Open Bug 1592948 Opened 5 years ago Updated 2 years ago

Unidentified set as KeyboardEvent.key for KP_Begin

Categories

(Core :: DOM: Events, defect, P3)

70 Branch
Desktop
Linux
defect

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"

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.

Component: Untriaged → DOM: Events
Product: Firefox → Core

(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.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Linux
Priority: -- → P3
Hardware: Unspecified → Desktop
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.