[PATCH] Allow special chars to be typed directly into cell

1 view
Skip to first unread message

Casey West

unread,
May 25, 2007, 4:01:48 PM5/25/07
to socia...@googlegroups.com
Currently, at least on Firefox on the Mac, special characters such as
'(', ')', and ':' are ignored when typing directly into the cell.
That's because the keycode for these legit characters is below 48.
The following patch allows characters with Unicode representations to
be typed directly into the cells.

--
Casey West


Index: WKCjs.txt
===================================================================
--- WKCjs.txt (revision 65)
+++ WKCjs.txt (working copy)
@@ -143,7 +143,7 @@
case 27: ch="[esc]"; break;
case 46: ch="[del]"; break;
default:
- if (ev1k<48) { // usually a special character
+ if (!e.charCode) { // usually a special character
if (ev1k==ev1w && ev1k==chk && ev1k==chw) { // Test for Opera
which sets these all the same here
if (chw<32) { // some control character (Opera doesn't give
others a higher number like other browsers)
if (vetedit) return true;

Reply all
Reply to author
Forward
0 new messages