same event.keyCode for "+" and "=" on JavaScript Firefox

Bug #117379 reported by Thomas K.
2
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Invalid
Undecided
Mozilla Bugs

Bug Description

Binary package hint: firefox

By using the following code

window.onkeyup = function(evt){return alert(evt.keyCode);}

on pressing "+" the shown keyCode is "61", but on pressing "=" the shown keyCode ist "61" too. But constant evt.DOM_VK_ADD is "107" and constant evt.DOM_VK_EQUALS is "61". So obvisiously the returned keyCode on pressing "+" is wrong.

ProblemType: Bug
Architecture: i386
Date: Mon May 28 17:57:38 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.3+1-0ubuntu2
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux erdelfe-ubuntu 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Tags: mt-confirm
Revision history for this message
Thomas K. (koudela) wrote :
Changed in firefox:
assignee: nobody → mozilla-bugs
Revision history for this message
John Vivirito (gnomefreak) wrote :

Thank You for your bug report.

  Is this still an issue for you with the latest firefox? Is this seen on other browsers example epiphany, galeon, ect..

Changed in firefox:
status: Unconfirmed → Needs Info
Revision history for this message
John Vivirito (gnomefreak) wrote :

This is not a bug, this is intended to be this way

+ and = are the same key on US keyboards thus same keycode
DOM_VK_ADD is the + key on numpad

Changed in firefox:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.