Closed NemesisMate closed 7 years ago
I'm having the same issue. The TextField I'm using is not custom it's just a regular TextField. The GuiGlobals.getInstance().requestFocus(rootNode); does the trick so I'm fine with the work around for now.
Thanks for keeping this one on my radar, guys. So far the fix seems non-trivial but I am thinking about it.
This should be fixed now and will show up in version 1.10.
Well, I'm experimenting a problem with Lemur's GuiGlobals.requestFocus. I use it to set the focus to a text field:
The textfield is in a custom element that I added to the scene with:
All works as I desire until I remove the element and I want my old input functionality back. I restore the input listeners and I remove the element from the node but the "onAction" is no long receiving pressed events (when I release a key, so the pressed value is false on the "onAction", it works well but not for pressed ones, when true).
So, in resume:
I found that with
GuiGlobals.getInstance().requestFocus(rootNode);
it works fine again but I'm not sure if this is the right procedure and if it is not leading to further problems. All help is appreciated.