Re: Programmatically typing into a textbox (KeyboardEvent)

Michael Hofer <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Am 14.02.12 18:37, schrieb Neil:
> Michael Hofer wrote:
>
>> A similar example with MouseEvents (click) triggering a checkbox works
>> fine for me, but I can't get the KeyboardEvent working (entering text
>> in the textbox).
>
> Have you set focus to the textbox?
>

No, I didn't. But I tried it now (focus before dispatchEvent) and it 
makes no difference (the element receives the focus, but still the 
keypress shows no effect).

Also, on the working example with the MouseEvent, i don't need to focus 
the checkbox (the event is dispatched directly to the element).

thanks,
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.