On Wed, 16 Jul 2025 01:40:54 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
> Another way to look at it: do we want to outlaw what ComboBox and Spinner are > doing? It's not illegal to create a KeyEvent and fire it at a control. It's > not illegal to consume a KeyEvent that originated in Glass. Things only fail > when the system menu is in effect and, again, only because it doesn't > participate in dispatch. A control can't just fire an event "to the inner control" using the usual `Event.fireEvent()`. These events are routed through the scene graph starting from the root, so an outside observer will see two key events, not one. There's no way of knowing that the two events are not actually two separate user inputs. I don't know what "outlaw" means in this case. Throw an exception when user code tries to fire input events? No, probably not. But in my view we should consider it as a control bug, not as a legitimate use of the event system. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1848#issuecomment-3076532022