RFR: 8091673: Public focus traversal API for use in custom controls [v6]
Nir Lisker
nlisker at openjdk.org
Tue Oct 29 21:43:19 UTC 2024
On Tue, 29 Oct 2024 21:31:59 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
> Also something that just occurred to me, but perhaps I'm late to the party; with the current API being on `Node` you could call `requestFocusTraversal` on basically any `Node`, even one that is currently not focused. I'm not sure if this is intentional or that the API should perhaps only work from the current focused node.
I saw this already in the previous PR and thought it's intentional. Even with this method being outside of `Node`, it takes a `Node` argument, which is arbitrary too. If you want to limit it, you'll have to throw or no-op on an unfocused node. I don't think that's necessary.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1604#issuecomment-2445381587
More information about the openjfx-dev
mailing list