Closed redtide closed 1 year ago
This change is a breaking change of the behaviour of the text edit field. There are use cases where the Enter key should not close the text edit field. Please add a listener on your instances of the text edit field and handle the Enter key there.
is there any example on how to use a ITextEditListener
? I thought it was as simple as subclass and override onKeyboardEvent()
.
You need to implement an IViewEventListener and register this listener with your text edit control. In this event listener you only check for EventType::KeyDown, cast this event to a KeyboardEvent via castKeyboardEvent and then you can check the KeyboardEvent if it is the ENTER key.
Thank you.
I hope it's fine if EditorConfig did his job to remove trailing spaces for this small addition