Bug 919

Summary: TestNewtKeyCodesAWT w/ NewtCanvasAWT Fails on Windows Due to Clogged Key-Release Event by AWT Robot
Product: [JogAmp] Newt Reporter: Sven Gothel <sgothel>
Component: windowsAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: 1   
Hardware: pc_all   
OS: windows   
Type: DEFECT SCM Refs:
8512777873461ee33d8ed913ee26bafc00a08a02
Workaround: ---

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)