opencoweb/coweb — Issue #139: RTE: Webkit apostrophe interpreted as right arrow
Author: bouchon
Created: 2011-11-04 01:01:24+00:00
State: open

Due to a total lack of standard as far as keyCode / charCodes go for all browsers.

In webkit, the charCode for an apostrophe is 39, as is the charCode for rightArrow key. In Firefox (which most agree implements this correctly and will provide the spec if one is ever accepted) the charCode for an apostrophe is 39, and the charCode for rightArrow is 0, as it should be, since no char is associated with the rightArrow key. Instead, its keyCode is 39.

We need a cross-browser solution, once and for all, to listen for key presses.