Yves, can you pleaasseeee add a "Window has focus?" condition?
When im building editors im always facing the problem of not being able to check if a window has focus.
Like when you have a toolbox, then the subapp also responds on keybord commands ín the editor when the TB doesn't have focus.
And for drawing (like pasting tiles on mouse down), when your doing something else on your computer and use the mouse, it just just draws on the playfield.
This can all be solved if i can check for "window has focus".