I'm now working on my game. And currently i'm focusing on game-built-in map editor.
Now I want to implement "delete" function, that allow users delete their objects from scene when pressing "delete" button.
To achieve that, a event handler is attached to editor root window to deal with the key event.
The problems is, this deleting operation should be blocked when user is editing properties, for example, when a user is deleting
the numbers in position attribute, he won't see his object disappeared instead.
I have tried isActive(), isCapturedByThis(), isCapturedByChild(), they all didn't work.
So now I'm going to try hasInputFocus() of Editbox. But I have to get all editbox from root window and inspect them.
How can I do this, instead of add those editbox one by one manually?
Or is there any other solutions?
Thank you.
And to those who are curious about my work, here is the github link:
https://github.com/DarkAngelZT/NeoGameF ... ee/tankwar
--update---
I tried just investigate one of the editbox, it seems the input focus is not gone when I click out side of the editbox

So now the question is how to know if a window is getting focus?