RFR: 8091673: Public focus traversal API for use in custom controls [v6]

John Hendrikx jhendrikx at openjdk.org
Tue Oct 29 22:08:11 UTC 2024


On Tue, 29 Oct 2024 21:53:06 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

> In that case, you are right. I don't have a strong opinion as I am not an advanced user of focus. The current behavior is good enough for me.
> 
> By the way, if you have multiple scenes in the stage, and each one has its own focused node, which node receives keyboard input?

Keyboard input goes to the active window, and so it would go to the scene attached to that window (and a window can only have one scene, not counting subscenes).  The node receiving the input then would be the focus owner of the scene that belongs to the current active window.

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

PR Comment: https://git.openjdk.org/jfx/pull/1604#issuecomment-2445415106


More information about the openjfx-dev mailing list