Alternative approach for behaviors, leveraging existing event system
Martin Fox
martin at martinfox.com
Thu Oct 19 14:22:22 UTC 2023
> On Oct 18, 2023, at 1:20 PM, Andy Goryachev <andy.goryachev at oracle.com> wrote:
>
> I wonder if this might encroach upon application-specific requirements/logic (that is, does not belong to the control behavior).
>
> For example, when the user enters text in a TextArea inside of a multi-cell notebook style application, SELECT_ALL (ctrl-A) may trigger select all on that TextArea, or the whole notebook page, depending on the actual requirements. This means it’s the function of the application or a page container to intercept the key binding, and not the TextArea’s.
>
It doesn’t matter whether it’s a key event or an action event, it’s going to be sent to the focusOwner and work up the dispatch chain. Either way it’s up to the TextArea and its container to negotiate what happens next.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231019/bfd203db/attachment.htm>
More information about the openjfx-dev
mailing list