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

NEW
Unassigned

Status

()

Toolkit
Autocomplete
11 years ago
4 years ago

People

(Reporter: ivodsh, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [similar to bug 286933], URL)

(Reporter)

Description

11 years ago
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

Updated

8 years ago
Depends on: 286933

Updated

8 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [similar to bug 286933]

Comment 2

4 years ago
Possible duplicates: bug 692581, bug 175597, bug 286933, bug 364733, bug 819616

Reportedly observed on these pages:
https://secure.feedingamerica.org/site/Donation2?df_id=1560&1560.donation=form1
https://www.ups.com/one-to-one/login
https://www.tumblr.com/login
https://course.bighistoryproject.com/en/Sign-In
https://idmsa.apple.com/IDMSWebAuth/authenticate.html
https://artemis.siol.net/servicePages/validate-login.sp
http://search.msn.com/
http://www.dotnetnuke.com/Home/tabid/510/ctl/Login/Default.aspx
http://paypal.com/
You need to log in before you can comment on or make changes to this bug.