On Tue, 15 Jul 2025 20:21:15 GMT, Martin Fox <m...@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. Good point, it's not and shouldn't be strictly illegal. I only commented earlier that I think they shouldn't be doing it but currently have little recourse. It should be perfectly fine to create your own KeyEvent or MouseEvent, and IMHO such events should be able to do anything that system created events can do, including firing system menus. That ship may have sailed though as I think there's already data in these events that users can't create or replicate. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1848#issuecomment-3076443962