Sorry for the delay. Persistent hardware issues. No editor access so it’s straight from the top of my head. You’ve been warned!
Currently i need to come out of the
widget(Click somewhere else) and then
have to press Enter in order to pop up
the next bulletin. otherwise it simply
goes to the next line int the same
text box.
If you’re using multiline nodes for this (as you should), they come with commit events you can override. What would work on a normal editable box beautifully, does not work with multilines as the Enter key simply moves the caret to a new line.
What will work in this situation is catching the enter key before it reaches the multiline box.
In the widget that has the multiline, override onPreviewKey > get key > compare to enter > if true > call a custom event of your choice > pass Handled
as the return value. If not true, pass Unhandled
.
This will prevent the multiline box from processing Enter, allow you to catch it and execute something else instead via a custom event - create a new widget, for example.
Also you have any idea to make the
cursor appear at the beginning of the
widget(page in this case)?In my case
it appears in the exact second line of
the first bulletin if there are
multiple bulletins.
Not sure if I get this one. When you click in the widget that has some text already you want to cursor to appear at the beginning of the text?