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 <masay...@d-toybox.com>
Manager, Internationalization, Mozilla Japan.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to