ESC key binding on the Scene

John Hendrikx john.hendrikx at gmail.com
Wed Nov 22 04:30:43 UTC 2023


IMHO, FX should not be consuming keys when they do nothing. Navigation 
keys are also always consumed (cursor keys + TAB), even when focus did 
not change.

I think this is because of the auto consume flag being set on many key 
bindings, while those bindings often have another condition in their 
event handler callback.  If that 2nd condition fails, the event is still 
consumed because auto consume was set.

--John

On 21/11/2023 11:37, Thiago Milczarek Sayão wrote:
> Hi,
>
> I would like to use ESC to close Stages. The problem is that if the 
> focus is on a TextField, it consumes the event.
>
> ESC is the key binding to Undo on the TextField, but it's always 
> consumed, even if there's nothing to undo.
>
> Is this correct? Should it not propagate if there's nothing to undo?
>
> -- Thiago.


More information about the openjfx-dev mailing list