java - SWT KeyUp event listener misses keys -
i have next code:
display.addfilter(swt.keyup, new listener() { public void handleevent(event e) { system.out.println("released " + e.character); } };
when press downwards keys 'a', 's', 'd', , 'f' @ same time, keydown event works expected. however, when release of keys @ same time expect output like:
released released s released d released f
but not case. printed out 1 character, such as:
released d
why skipping out on other 2 or 3 events?
this bug.
bug 50020 - keyreleased not working correctly. keyreleased seems firing incorrectly or not @ in next case: several keys pressed, in succession, , held down. 1 one, keys released. keyreleased event fires event.character lastly key pressed. if lastly key pressed released, other keys not fire released event when released.
the bug never fixed (comment #1 in bugtracker entry):
comment #1 old bug won't fix. problem there not plenty info in window compute key pressed in wm_keyup.
java swt keylistener
No comments:
Post a Comment