Open Bug 332561 Opened 15 years ago Updated 2 years ago
Multiple problems with using onkeydown to restrict input
You can work around both of these problems by using onkeypress (with event.charCode) instead of onkeydown (with event.keyCode). The fact that you're able to use onkeydown to restrict input at all is a relatively new hack (see bug 167145).
Assignee: nobody → events
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → ian
Summary: Onkey events behave inconistantly. → Multiple problems with using onkeypress to restrict input
Version: unspecified → 1.8 Branch
I think you need to file separate bug reports for each issue (the Mac issue and the Linux issue). Chances are they need different fixes, possibly from different people. Once you've filed both bugs, please mention the bug numbers here and close this bug as invalid. Btw, the Linux issue might be cross-platform but just not show up on Windows due to bug 91592.
Summary: Multiple problems with using onkeypress to restrict input → Multiple problems with using onkeydown to restrict input
The Mac issue has been filed as bug 333475.
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.