W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

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

From: Travis Leithead <travil@microsoft.com>
Date: Wed, 20 Oct 2010 15:57:25 +0000
To: Ojan Vafai <ojan@chromium.org>
CC: "www-dom@w3.org" <www-dom@w3.org>, Doug Schepers <schepers@w3.org>, "Kirk Sykora" <ksykora@microsoft.com>, Jacob Rossi <jrossi@microsoft.com>
Message-ID: <9768D477C67135458BF978A45BCF9B381FC41F@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
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: ojan@google.com [mailto:ojan@google.com] On Behalf Of Ojan Vafai
Sent: Saturday, October 16, 2010 6:11 PM
To: Travis Leithead
Cc: www-dom@w3.org; 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 <travil@microsoft.com<mailto:travil@microsoft.com>> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:06 GMT