W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2013

Re: Re: Keyboard events for accessible RIAs and Games

From: Кошмарчик <garykac@chromium.org>
Date: Thu, 31 Jan 2013 11:50:27 -0800
Message-ID: <CAGnkXoFx0Fjsqjq4gYMoSk1YArKPRE8nARSu_yUj5W1a70ZN9g@mail.gmail.com>
To: Wez <wez@google.com>
Cc: Hallvord Reiar Michaelsen Steen <hallvord@opera.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, www-dom@w3.org, Florian Bösch <pyalot@gmail.com>
On Thu, Jan 31, 2013 at 9:58 AM, Wez <wez@google.com> wrote:

> The information this let's the application access is the keyboard layout
> the user has in effect, which is information already accessible via the
> Level 3 locale member of KeyboardEvent.
>
I was just about to make this point.  The layout information is already
available if you look at any key event.

In any case, this problem can be avoided by simply requiring the
locale/layout to be passed in as a parameter:
   window.KeyboardEvent.queryKeyCap(layout, code)
This version is also more useful since it permits the keycap for other
layouts to be queried programmatically.

But I still would like to see a getCurrentLocale (or Layout) API so that
one could write something like:
   queryKeyCap(getCurrentLocale(), code)

-Gary
Received on Thursday, 31 January 2013 19:50:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 31 January 2013 19:50:56 GMT