Open Bug 194228 Opened 22 years ago Updated 2 years ago

onmousedown disables text input mouse click focus

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Other
defect

Tracking

()

People

(Reporter: jonathan, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130

document.onmousedown = function(){return false;}

Sites containing the above do not allow the text input fields to be selected
with a mouse click.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Text fields are focused onmousedown (try this -- click and hold, and note that
the textfield gets focus).  Cancelling the onmousedown event should indeed
prevent its default action (that of focusing the textfield).
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 195934 has been marked as a duplicate of this bug. ***
dup of bug #144503? it also talks about "onmousedown".
*** Bug 144503 has been marked as a duplicate of this bug. ***
(From bug 144503: note IE and Nav4 do allow focus on the textfield in this case.
Mozilla is standards correct but real-world incompatible.)
Assignee: saari → nobody
QA Contact: desale → events
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.