Re: Focused nodes and focus owners

2023-08-18 Thread John Hendrikx
On 18/08/2023 18:35, Michael Strauß wrote: Scene graph nodes have three focus-related properties: 1. focused 2. focus-within 3. focus-visible What might be a bit surprising is that multiple nodes can be focused at the same time, but only one of those focused nodes can be the scene's focus owne

Re: Focused nodes and focus owners

2023-08-18 Thread Michael Strauß
JDK-8313956 is just a simple bug, it's alrady fixed in PR 1210 without any new API. I'm only referencing this PR because I think it shows that there can be confusion that `focus-within` can match a node that doesn't contain the focus owner. This is not a bug, it's by design. The question is whethe

Re: Focused nodes and focus owners

2023-08-18 Thread Andy Goryachev
-dev Subject: Re: Focused nodes and focus owners The added properties and pseudo-classes would basically complete the representation of focus-related states of JavaFX nodes. But I don't think it's something an application can't implement in other ways. What prompted this idea is th

Re: Focused nodes and focus owners

2023-08-18 Thread Michael Strauß
The added properties and pseudo-classes would basically complete the representation of focus-related states of JavaFX nodes. But I don't think it's something an application can't implement in other ways. What prompted this idea is the discussion in PR 1210 [0], where the behavior of the reproducer

Re: Focused nodes and focus owners

2023-08-18 Thread Andy Goryachev
Michael: Is there a specific problem that absolutely cannot be solved without adding extra properties to Node (or Control)? Thanks! -andy From: openjfx-dev on behalf of Michael Strauß Date: Friday, August 18, 2023 at 09:35 To: openjfx-dev Subject: Focused nodes and focus owners Scene graph