tbee at tbee.org
Sun Oct 6 22:01:20 PDT 2013
If I remember correctly, in Swing I solved something similar by setting a generic keyboard listener to the frame and then determine on shift-press what component the mouse was over using the coordinates. Maybe that works here as well.
On 2013-10-07 00:40, Pedro Duque Vieira wrote:
> 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,
More information about the openjfx-dev