Firefox 1.5 Keypress Event Changes
Someone submitted a post to the P2P forum saying that one of my book examples is no longer working in Firefox 1.5. After some investigating, I made an interesting discovery. It seems that in Firefox 1.5, the
keypress event behaves differently than in previous version.
keypress event fires only for character keys (those keys that produce output). Prior to Firefox (and in other browsers) these did not include keys like Backspace and Delete. Firefox 1.5 now fires the event for Backspace, Delete, Ins, and Pause/Break. I haven’t been able to find a bug relating to this change, but it sure is annoying.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.