On Thu, 21 May 2026 22:55:15 GMT, Marius Hanl <[email protected]> wrote:

> For a bugfix, I'm generally okay with any of the possible approaches: 1) do 
> nothing, 2) send the event directly to the target, or 3) dispatch it through 
> the skin subgraph.

The TextField of a ComboBox or Spinner is a direct child so option 2 and 3 are 
the same. This assumption is baked into the code in a few places including the 
FakeFocusTextField.

> I wouldn't want this proposed solution (directly dispatching the event to its 
> final target) to be the last word on the topic of focus delegation, 
> especially when it comes to a potential API-level solution.

I've entered draft PR #2181 which sketches out an alternative solution for 
focus delegation. It shows how a control class can delegate events as a drop-in 
solution; it doesn't require updating Scene or Node in any way to work.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2166#issuecomment-4650608609

Reply via email to