Closed Bug 713541 Opened 13 years ago Closed 13 years ago

onkeypress event only fires in typing areas

Categories

(Core :: DOM: Events, defect)

9 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 696020

People

(Reporter: tehalmightyscimonster, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0 Build ID: 20111221135037 Steps to reproduce: I was designing a program to type in special characters, using DIV tags instead of TEXTAREA. There are no TEXTAREAs on the page. The BODY tag had onkeypress="addKey(event)". Actual results: When I pressed a key, no event fired. In Firefox 7/8/9 BETA/10/11, this worked, but in the stable release of 9, it does not. Expected results: The pressed character should have been added to a list, and put into the correct div. Again, this worked perfectly in the other versions.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.