Dear Michael: Sorry for the late reply - you are absolutely right. I’ve tried to solve this issue with the InputMap internal event handler list, but your proposal looks much better, as it might provide a system-wide reliable way to manage event handler invocation order.
Thank you -andy From: openjfx-dev <openjfx-dev-r...@openjdk.org> on behalf of Michael Strauß <michaelstr...@gmail.com> Date: Monday, October 23, 2023 at 16:10 To: openjfx-dev <openjfx-dev@openjdk.org> Subject: Prioritized event handlers Hi Andy! In a previous mail, I observed that a method like `BehaviorBase.addHandlerLast` suggests to me that we're lacking core tools in the JavaFX framework. In this case, we want to ensure that an event handler is always invoked before (or after) other event handlers. One way to do that might be to support prioritized event handlers at the core level, instead of creating new API that seems like a workaround. I've created a proof of concept for prioritized event handlers [0], which might be a moderate-effort but high-value addition to JavaFX. [0] https://github.com/openjdk/jfx/pull/1266