RFR: 8268225: Support :focus-visible and :focus-within CSS pseudoclasses [v7]

Jeanette Winzenburg fastegal at openjdk.java.net
Wed Dec 8 10:37:22 UTC 2021


On Tue, 7 Dec 2021 15:44:26 GMT, Michael Strauß <mstrauss at 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


More information about the openjfx-dev mailing list