JDK-8091670 : Add API for better control over keyboard focus
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-10-08
  • Updated: 2024-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
There is no concept of a "focus controller" currently available. The existing FocusModel class is only available for table/list/tree components. There should be a means for better control over keyboard focus, particularly for customising keyboard focus traversal.
For example - the Ensemble demo app has a network proxy dialog. While the dialog is visible, it is still possible to focus on nodes in the main app by tabbing. Ideally it should be possible to restrict focus traversal to just the proxy node.
Comments
There is the unofficial Parent.setImpl_traversalEngine(ParentTraversalEngine) which allows to set either a custom TraversalEngine or an already existing TraversalEngine with a custom Algorithm. Though, of course it's not optimal to have to rely on a private API (especially as it is slated for removal according to the deprecated tag). It lists RT-21209 as ticket, which unfortunately does not seem to be publicly accessible.
23-02-2015