Bug 897

Summary: Missing NEWT input event when focus is lost on canvas while holding a button down
Product: [JogAmp] Newt Reporter: Jesse <narf_bro>
Component: awtAssignee: Sven Gothel <sgothel>
Status: UNCONFIRMED ---    
Severity: normal CC: narf_bro
Priority: ---    
Version: 1   
Hardware: pc_x86_64   
OS: windows   
Type: --- SCM Refs:
Workaround: ---

Description Jesse 2013-11-06 18:05:46 CET
If you redirect focus away from the NewtCanvas while holding a key down, you will lose the next "pressed" event. Easy to reproduce - happens 100%!

1. Focus your canvas
2. Press and hold CTRL (non-key repeat button)
3. Click away from the canvas focusing another window while holding CTRL
4. Release CTRL
5. Focus the canvas
6. Press and hold CTRL - Note that no input event was fired for keyPressed!!
7. Release CTRL - Only the release event comes through.

Expected: When you re-focus the canvas and press CTRL in steps 5 and 6, it should issue a keyPressed event

Note: I agree with the current functionality that it shouldn't issue the Release CTRL event when the focus is away from the window, but the press event should absolutely be issued!
Comment 1 Sven Gothel 2013-11-17 18:41:08 CET
NewtCanvas ? NewtCanvasAWT ?
Comment 2 Sven Gothel 2013-11-17 18:41:37 CET
Platform ? Since OSX uses AWT translated events ..
Comment 3 Jesse 2013-11-17 18:47:32 CET
I have only tried it on Windows 7. It's a NewtCanvasAWT.