Open Bug 364733 Opened 18 years ago Updated 2 years ago

hitting Enter button while focus on an form auto complete item fires onkeydown

Categories

(Toolkit :: Autocomplete, defect, P3)

defect

Tracking

()

REOPENED

People

(Reporter: ivodsh, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [similar to bug 286933])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

The url I specified is a login screen. the onkeydown event is handled by javascript in order to post back. 
When typing in User Name an auto complete popup may appear if you select an item from this popup and press ENTER then the form is submitted surprisingly. and the User name field is not prefilled.
The IE behavior is not to fire onkeydown event when enter is pressed, because the enter action semantically is not intended for the underlying page but for the browser.


Reproducible: Always

Steps to Reproduce:
1.Go to the url http://www.dotnetnuke.com/Home/tabid/510/ctl/Login/Default.aspx
2.Type for example "user1" in user name field
3.press login - unsuccessfull login appears
4.then go again in user name field an type "u" only - the auto complete appears
5.select scroll the the user1 item using the up down arroys
6.now pres ENTER
7. the form submits and the user name field has only "u"

Actual Results:  
onkeydown event is fired with keycode=13
the form submits and the user name field has only "u"

Expected Results:  
No onkeydown should fire
If I'm reading it right, bug 286933 eats the keypress event, but apparently not the keydown.
Component: Form Manager → Autocomplete
OS: Windows XP → All
Product: Firefox → Toolkit
QA Contact: form.manager → autocomplete
Hardware: PC → All
Version: unspecified → Trunk
Depends on: 286933
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [similar to bug 286933]
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Status: RESOLVED → REOPENED
Priority: -- → P3
Resolution: INACTIVE → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.