Open Bug 764822 Opened 11 years ago Updated 6 months ago

onclick event does not report modifiers if user pressed enter instead of clicking

Categories

(Firefox :: Keyboard Navigation, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: alliz_gub, Unassigned, NeedInfo)

Details

When pressing Ctrl (or Shift) and clicking a submit button, the event will report ctrlKey (or shiftKey) as true.
With the focus in a form field and pressing Ctrl (or Shift) + Enter will *not* report ctrlKey (or shiftKey) as true.

Problem seen with Firefox 13 under kubuntu 12.04 and Windows XP.

You can test with http://jsfiddle.net/ReD6k

Press some modifiers, and *click submit* or *press Enter* to see the difference.
The date is present to be sure info has been refreshed because some modifiers (under some other browser or OS) will not submit.

I have discovered this yesterday, 9 years after the OP, on macOS. This happens also when clicking a space bar to check a checkbox.

Flags: needinfo?(dao+bmo)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.