From:  ccjpb@bristol.ac.uk (JP. Baker)
Date:  28 Apr 2008 17:26:39 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.web-development
Subject:  

Re: mystery with ( in text field

NNTP-Posting-Host:  137.222.12.110

Just in case you haven't figured this out yet:

In article ,
jekillen   wrote:
>Hello:
>If anyone has any info on the internal details of FIre Fox, or
>more generally, what happens with ( - open parenthesis
>
>I have some javascript code which is registering key press events
>and writes text to a text field. When I tell it to watch for
>key code 40, it is supposed to write open parenthesis to
>the field. But instead of doing that it writes '2'.
>Close parenthesis works as expected, key code 41
>produces ')'.

...

>                                   case '40':  // #2         50
                                          ^^
>                                   a = '2';
>                                   aa = '2';
>                                   break;

...

>                                   case '40':  // (  -> this is it
>                                   a = '('; // I have tried '\(' and "(" 
>and "\(" with no change
>                                   aa = ':(';
>                                   break;

...


[Something about 'wood' and 'trees']
-- 
John P Baker