Open Bug 596143 Opened 10 years ago Updated 2 years ago

element.dispatchEvent() doesn't synthesize navigation keys

Categories

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

x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jarben, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9

Not sure if this is a bug or feature but would be nice if element.dispatchEvent(KeyboardEvent ev) works with navigation keys such as key codes 37 or 39. 

Reproducible: Always

Steps to Reproduce:
1. Run an attached example
2. Press "synthesize right key"
Actual Results:  
nothing happens

Expected Results:  
This should move selection to another character
We have a number of places where we check whether an event is trusted (which this one is not) before performing UI actions...

Ehsan, is this one of those case?  Or is editor just putting its event listeners somewhere below the document?
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.