Re: keyboard buffer in Firefox
小谢 <[email protected]> Wed, 18 Aug 2010 00:18:36 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <d39341c3-3bb2-4ef1-8653-117ade120e9d@k10g2000yqa.googlegroups.com> |
On Aug 18, 12:27 pm, Mounir Lamouri <[email protected]> wrote: > On 08/18/2010 05:27 AM, 小谢 wrote: > > > Hi > > > When I press a key and don't release it immediately, it takes about > > half a second for Firefox before launching a series of keypress > > events. Why the pause? Why isn't the consecutive keypress events > > triggered immediately? Does Firefox have a keyboard buffer kind of > > thing inside? > > Hi, > > I think your issue is not related to DOM. The key repetition should > behave exactly the way you have described it: there is a timeout before > considering the keypress as a key repetition instead of a simple long > keypress. This timeout is probably a system setting and not related to > Firefox. > > By the way, why do you need a continuous flow of keypress events? > > -- > Mounir Hi, Mounir. Sorry I post in the wrong board and thanks for the answer. I'm creating a game base on <canvas>. It's best to respond to user input immediately in the game, so the timeout become intolerable. Is there any better way to get rid of the timeout? Xie _______________________________________________ dev-tech-dom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-dom