Keyboard events

Pedro Duque Vieira pedro.duquevieira at
Sun Oct 6 15:40:18 PDT 2013


I have the following use case:
When the user presses shift and the mouse is hover the chart component the
cursor must change to an open hand cursor signaling to the user that the
chart is ready for a panning action.
The problem is that for this to be possible I want the chart to be able to
listen to keyboard events even when it doesn't have focus.

I think this is not possible and I wonder why. Swing was the same, you
could only listen to keyboard events if the control had focus. Is this a
technical limitation? If there is no technical limitation I think it would
be better to remove this restriction, I think it is limiting and the above
scenario is a good use case to show that.

Thanks, best regards,

Pedro Duque Vieira

More information about the openjfx-dev mailing list