Re: Implementation not following documentation regarding when event handler gets called

2023-05-29 Thread Nir Lisker
Didn't look too deep, but seems like a bug or incorrect doc. I don't see such specifications in other "setOnX" methods. On Sun, May 28, 2023 at 1:02 PM John Hendrikx wrote: > When looking at the code for Scene#setOnKeyPressed, I noticed that it > calls Scene#setEventHandler. This is documented

Implementation not following documentation regarding when event handler gets called

2023-05-28 Thread John Hendrikx
When looking at the code for Scene#setOnKeyPressed, I noticed that it calls Scene#setEventHandler.  This is documented as:     /** * Sets the handler to use for this event type. There can only be one such * handler specified at a time. This handler is guaranteed to be called *