On Tue, 7 Dec 2021 15:44:26 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>However, I'd still argue that a node that is not part of the scene graph >(non-atomically) should not be the focus owner of the scene graph. I agree :) But that's what seems to happen: in my example, add a handler to remove the focused "moving" button. When removed, the scene's focus owner is either the next focusable (the "move" button) or null if there is none. On re-adding the button, it's either unfocused (if there had been a next focusable) or focused (if there is none). Not sure what happens in your test snippet .. ------------- PR: https://git.openjdk.java.net/jfx/pull/475