W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Proposal to add USB keycodes to the current DOM3 key events

From: Кошмарчик <garykac@chromium.org>
Date: Thu, 6 Sep 2012 15:58:25 -0700
Message-ID: <CAGnkXoEmD1cprAmXkfdxvfZf=o=Ud8uiAP3u2Jpg3Ocqg45+aw@mail.gmail.com>
To: public-webapps@w3.org
Hi all,

I've written up a brief proposal to enhance the current DOM Level 3
key events by adding USB keycodes.

Here is a link to the proposal document:
https://docs.google.com/document/d/1eJvlUaTBsWa71hIc0X4s6SrCopX9LCPs1YOAuVluxBs/edit


_In summary_

*Why this proposal?*

With the current DOM3 key events:
Problem 1: Keyup events cannot be reliably matched with the
originating keydown event. This is our primary motivation for this
proposal since this causes problems for a webapp that we are working
on.
Problem 2: Keys cannot be identified by their position on the keyboard.

*The proposal, in a nutshell*

Add a new usbUsage field to the KeyboardEvent. The value of this field
would contain the USB Usage Page and Usage ID for the key. These
values are consistent and identify keys by their location on the
keyboard without being affected by modifier keys or the current
keyboard layout.


Please see the linked document for a more detailed description and
motivating examples.

Thank you,
Gary Kacmarcik
garykac@chromium.org
Received on Friday, 7 September 2012 07:31:53 GMT

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