W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Re: Keyboard events for accessible RIAs and Games

From: Florian Bsch <pyalot@gmail.com>
Date: Thu, 31 Jan 2013 11:57:36 +0100
Message-ID: <CAOK8ODiZJWHmkiO5qUj69SKPq-yjLZdTL3hOd=_bgvGDLDf0Yg@mail.gmail.com>
To: Hallvord Reiar Michaelsen Steen <hallvord@opera.com>
Cc: (wrong string) šоˆма€‡ик) <garykac@chromium.org>, Webapps WG <public-webapps@w3.org>
Sounds fine to me, any objections to add it to the Event Level 4 spec?


On Thu, Jan 31, 2013 at 11:46 AM, Hallvord Reiar Michaelsen Steen <
hallvord@opera.com> wrote:

> > What/where would be a good place to put the API for say
> queryKeyCap(code) ?
> Given that the implementation will have a KeyboardEvent property specified
> on the global object (i.e. window) I'd propose
>
>
> window.KeyboardEvent.queryKeyCap(code)
>
>
> which returns a string with the symbol shown on the key.
>
>
>
> I.e.
>
>
> On QWERTY:
> KeyboardEvent.queryKeyCap('Digit2') === '2' // true
>
>
> On AZERTY:
>
> KeyboardEvent.queryKeyCap('Digit2') === '' // true
>
>
> etc.
>
> --
> Hallvord R. M. Steen
> Core tester, Opera Software
>
>
>
>
>
>
Received on Thursday, 31 January 2013 10:58:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT