Open Bug 1011860 Opened 7 years ago Updated 3 years ago

select: cancelling onkeydown doesn't cancel arrow button clicks

Categories

(Core :: DOM: Events, defect, P5)

29 Branch
x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: gregor, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140506152807

Steps to reproduce:

I want to prevent select box changes when arrow buttons are clicked by cancelling keydown events. My usecase is that I allow the user to jump between form fields, see http://gr2m.github.io/bootstrap-navigable-table/


Actual results:

See attached demo. Clicking "1" or "3" doesn't change the select's value as expected, but clicking arrow keys on the keyboard does. It shouldn't though.


Expected results:

event.preventDefault() on keydown should prevent select value to be changed when pressing arrow keys
Component: Untriaged → DOM: Events
Product: Firefox → Core
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.