chiark / gitweb /
Rewrite the JS keyboard handling to cope with IE and Chrome.
authorSimon Tatham <anakin@pobox.com>
Fri, 5 Apr 2013 15:49:27 +0000 (15:49 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 5 Apr 2013 15:49:27 +0000 (15:49 +0000)
commit2360b77812e184902e44c7f4ea2f6fc79729e370
treed2d36b7537da580109e3b4f522da4585f70f92f8
parent5dc559c8be1b8f6ed15f560433f25c952c874f93
Rewrite the JS keyboard handling to cope with IE and Chrome.

Unlike Firefox, IE and Chrome don't generate keypress events at all if
you suppress the default handling of keydowns. Therefore, we have to
figure out everything from the keydown event, because if we unsuppress
the default handling of any keydowns then we'll get annoyances like ^R
going back to meaning reload-page rather than redo-move.

[originally from svn r9810]
emcc.c
emccpre.js