RFR: 8340852: ScrollPane should not consume navigation keys when it doesn't have direct focus [v2]

Andy Goryachev angorya at openjdk.org
Fri Oct 4 21:42:55 UTC 2024


On Fri, 4 Oct 2024 21:19:55 GMT, Martin Fox <mfox at openjdk.org> wrote:

> Again, it’s really, really rare for a ScrollPane to have focus.

incorrect.  if you have a non-interactive scroll pane content and click on it, the scroll pane gets focus and handles the keys correctly.  and even if there is interactive content, clicking on any pane inside causes the scroll pane to receive focus.

you can try with the monkey tester, as it allows for changing various properties at run time (focusTraversable, mouseTransparent, etc):

![Screenshot 2024-10-04 at 14 37 20](https://github.com/user-attachments/assets/b4271525-bddf-44a6-8d3f-f69148abd339)

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

PR Comment: https://git.openjdk.org/jfx/pull/1582#issuecomment-2394706405


More information about the openjfx-dev mailing list