On 24/09/2024 22:29, Martin Fox wrote:
This proposal should give some quick background on how traversal key
events are handled, specifically that controls should let the key
events bubble up to the Scene to invoke traversal. And if the
traversal keys are always going to be consumed by the Scene that
should also be mentioned.
There’s been a few comments suggesting the traversal key events should
not be consumed if the focusOwner doesn’t change.
Almost all controls that do their own focus traversal handling do so
because they may get stuck in a ScrollPane which consumes keys without
having the focus. If this is fixed, keys can just bubble up to the
Scene for handling. See https://bugs.openjdk.org/browse/JDK-8340852
Unfortunately that would break Popups which have an, um, interesting
event architecture.
If keys bubble up to Scene, as they should in most cases, then there is
no further bubbling anyway, so consumed or unconsumed would be irrelevant.
--John