RE: [D3E] Last Call Feedback: expected 'char' values for certain 'key's in Key Values Set

It turns out that the keyboard drivers in Windows OS differentiate the "-" key on the 10-key pad from the "-" key above home row. We did nothing special in IE9's implementation to map the 10-key "-" to "Subtract".

Besides, with different "key" names, devs can easily distinguish between the two (... course they could also do so with the "location" property...), and when they don't care about distinguishing the two, they can use the "char" property :).

Seems like all the scenarios are still covered.

From: [] On Behalf Of Ojan Vafai
Sent: Saturday, October 16, 2010 6:11 PM
To: Travis Leithead
Cc:; Doug Schepers; Kirk Sykora; Jacob Rossi
Subject: Re: [D3E] Last Call Feedback: expected 'char' values for certain 'key's in Key Values Set

I understand "Enter", but why do the others even need special key names? For example, can't "Add" just have the key name of "+"?
On Thu, Oct 7, 2010 at 4:00 PM, Travis Leithead <<>> wrote:
Dear DOM Level 3 Events WG:

In implementation of IE9's support for the 'key' and 'char' properties of the Keyboard event, we found that additional named keys provide char values, which are not explicitly called out in the current editor's draft of section 6.2.7.

The subset we have identified so far, which we expect users to want char values for are listed below:

key Name        Char value
'Add'           +
'Decimal'       .
'Divide'        /
'Enter'         \n
'Multiply'      *
'Subtract'      -

It is our recommendation that these 'char' values be added to the spec's list of Key Values Set.

Received on Wednesday, 20 October 2010 15:58:19 UTC