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:

_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
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
Received on Friday, 7 September 2012 07:31:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:38 UTC