andreasgal/gaia — Issue #327: Key events should come with there respective keyCode, even come from a software keyboard
Author: timdream
Created: 2012-02-01 04:21:29+00:00
State: open
Labels: bug, IME

Bug issue involving revisit `MozKeyboard` function on chrome.

As mentioned [here](https://github.com/andreasgal/gaia/pull/319#issuecomment-3753366), we currently send keyCode=0 for all the non-special keys. While web apps can get the charCode from, well, `charCode`, not many apps do so, so we need to generate key code with correct `keyCode`s.

Simple testing page: http://jsfiddle.net/timdream/YDGgk/

Providing keyCode is in parity with other software keyboards implementations, e.g. iOS.