clientside/amplesdk — Issue #114: Keycodes don't match in Chrome Browser
Author: h6w
Created: 2011-12-07 04:42:46+00:00
State: open

I'm using XUL as an example, but I don't think it's limited to XUL.

If I do:

Nothing happens when I press the L key.

Upon debugging, at https://github.com/clientside/amplesdk/blob/master/ample/languages/xul/elements/key.js#L31 oEvent.keyIdentifier is 'U+004C' which means that the test will fail at that line.

I don't know if the keyIdentifier in the event should be translated to 'L' or if the key attribute should be translated to U+004C, but either way would work. They just have to match.

I haven't tested this in other browsers, so that may have an effect on the decision, particularly if not all browsers are returning the same keycodes.