Bug 897 - Missing NEWT input event when focus is lost on canvas while holding a button down
Summary: Missing NEWT input event when focus is lost on canvas while holding a button ...
Alias: None
Product: Newt
Classification: JogAmp
Component: awt (show other bugs)
Version: 1
Hardware: pc_x86_64 windows
: --- normal
Assignee: Sven Gothel
Depends on:
Reported: 2013-11-06 18:05 CET by Jesse
Modified: 2013-11-17 18:47 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
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.