W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2010

Re: what should event.key be if a key inserts multiple characters?

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Tue, 25 May 2010 23:42:55 +0200
To: www-dom@w3.org, "Jacob Rossi" <rossi@gatech.edu>
Cc: ojan@chromium.org
Message-ID: <op.vc96ltg8a3v5gv@hr-opera.oslo.osa>
On Tue, 25 May 2010 00:47:16 +0200, Jacob Rossi <rossi@gatech.edu> wrote:

> .keyCode  -  Deprecated. Use .key
> .charCode - Deprecated. Use .char
> .key - Name of key being pressed.
> .char - character value produced. Empty string if the key does not
> produce a character (arrow keys, function keys, etc.).

Short and sweet, with a clear link to the related properties from the  
past. Good naming, sir :)

-- 
Hallvord R. M. Steen, Core Tester, Opera Software
http://www.opera.com http://my.opera.com/hallvors/
Received on Tuesday, 25 May 2010 21:43:24 GMT

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