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

Andy Goryachev angorya at openjdk.org
Wed Oct 2 21:17:41 UTC 2024


On Wed, 2 Oct 2024 21:00:55 GMT, Martin Fox <mfox at openjdk.org> wrote:

> Whatever behavior we want the way it's implemented in JavaFX at the moment is wrong.

I changed my mind and I agree with you and John that this change makes sense.

> BTW, I'm not optimistic that we can find some combination of modifiers + arrow keys to use. The behavior of Shift is already defined and many of the other modifier + arrow combinations are used by one OS or another.

There was a recent change made to a number of scrollable views (ListView, TreeView, TableView, TreeTableView) to add alt-ctrl-LEFT/RIGHT/UP/DOWN (option-command-LEFT/RIGHT/UP/DOWN) key bindings just for that.

Perhaps we could apply the same idea to the ScrollPane.

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

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


More information about the openjfx-dev mailing list