Re: keyboard buffer in Firefox
Martijn <[email protected]> Wed, 18 Aug 2010 11:59:44 +0200
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 18, 2010 at 9:18 AM, 小谢 <[email protected]> wrote: > 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? Can't you just listen for keydown, then do whatever function needs to be called, and then stop doing that onkeyup? Regards, Martijn > > Xie > _______________________________________________ > dev-tech-dom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-dom > -- Martijn Wargers - Help Mozilla! http://quality.mozilla.org/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22 _______________________________________________ dev-tech-dom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-dom