Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to ship: KeyboardEvent.code attribute

36 views
Skip to first unread message

Masayuki Nakano

unread,
Jan 28, 2015, 2:58:47 AM1/28/15
to dev-pl...@lists.mozilla.org, Olli Pettay
DOM Level 3 Events (D3E) defines an attribute of KeyboardEvent, .code, it allows web applications to check "physical key".

The specs are:
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#code-motivation
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3Events-code.html

The value of .code doesn't depend on selected keyboard layout nor modifier state.

The last blocker bug is support of Sun keyboard's legacy keys (We know some Linux users are still using Sun keyboard).
https://bugzilla.mozilla.org/show_bug.cgi?id=1020139

Today, this is defined by the newest WD of D3E. Therefore, I'm working on this now.

After that, I'd like to enable KeyboardEvent.code in release build too (In non-release builds, already enabled since May, 2014).

If we enable this, Gecko is the first engine to support this.

Bug to turn on by default in release build:
https://bugzilla.mozilla.org/show_bug.cgi?id=1126673

--
Masayuki Nakano <masa...@d-toybox.com>
Manager, Internationalization, Mozilla Japan.
0 new messages