Community
Participate
Working Groups
Created attachment 163528 [details] patch showing bug To reproduce: - Apply patch - Open controls-demo in FF - TextTab => Check "KeyListener (reject all) - click into textfield - press some keys: nothing happens (OK) - hold a key pressed: some characters appear, but shouldn't As far as i can tell only Firefox is having this problem, so it's probably a browser-bug.
Might also have something to do with the way KeyEventHandler normalizes key events in "_onkeyupdown" for FF in Windows.
The problem appears to be in AsyncKeyEventUtil. Whenever a keyEvent is fired, the "intercept" function stores its properties, so the event can be re-fired after the request to the server is finished. Usually the data is stored in "_pendingEventInfo", and re-fired if "allowEvent" is called by the server. However, if a keyEvent is fired while a request is already running, it is stored in the "_bufferedEvents" array instead, and re-fired by "_onRequestReceived" (inderectly) in any case, wether allowEvent was called or not. What should actually happen, is that yet another request is sent for this buffered event.
Created attachment 164551 [details] fix
Applied patch to CVS HEAD