Open Bug 1061332 Opened 8 years ago Updated 1 year ago

Key press event is triggering even when there is alert box/confirmation box prompted


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

31 Branch
Windows 7
Not set





(Reporter: pawangupta.iu, Unassigned)


(Whiteboard: DUPEME)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446

Steps to reproduce:

I have bound a key press event on the text box. So that when user presses an enter key the cursor will move from one text box to another. But if user enters some wrong value then i've put an alert message and return false from that function.

Actual results:

If user enters some wrong value then there will be an alert box displayed.
But at If user presses enter key on alert message to click on OK then the cursor automatically moves from one text box to another.

Expected results:

 In ideal case this key press event should not trigger when there is a alert box or confirmation box prompted in the browser. So that the focus stays on the text box for which the same alert message is displayed.
Severity: normal → major
Component: General → Event Handling
Priority: -- → P1
Please provide a minimal test case and attached here.
(And do not touch Importance Priority)
Flags: needinfo?(pawangupta.iu)
Priority: P1 → --
Whiteboard: DUPEME
Flags: needinfo?(pawangupta.iu)
Component: Event Handling → User events and focus handling
QA Whiteboard: qa-not-actionable
You need to log in before you can comment on or make changes to this bug.