Bug 919 - TestNewtKeyCodesAWT w/ NewtCanvasAWT Fails on Windows Due to Clogged Key-Release Event by AWT Robot
Summary: TestNewtKeyCodesAWT w/ NewtCanvasAWT Fails on Windows Due to Clogged Key-Rele...
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: windows (show other bugs)
Version: 1
Hardware: pc_all windows
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-12-04 07:31 CET by Sven Gothel
Modified: 2013-12-04 07:52 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
8512777873461ee33d8ed913ee26bafc00a08a02
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2013-12-04 07:31:22 CET
For an unknown reason, on Windows w/ Java7, a NewtCanvasAWT's NEWT window
will not receive a sent key-release event by AWT Robot while otherwise being IDLE.

It is observed that moving the mouse a bit, i.e. sending other events down the 
AWT/Native event dispatcher removes the 'clog' and the key-release event is dispatched.

The 'clog' happens to be _before_ NEWT's Windows native event queue's dispatch path,
since the key-release event was not visible here before moving the mouse.

Remedy as observed: Inject tiny mouse-move events ..
Comment 1 Sven Gothel 2013-12-04 07:52:00 CET
8512777873461ee33d8ed913ee26bafc00a08a02
  Fixed as described (move mouse back/forth)