How to disable using Enter key for new line in TextArea and call function instead

0 Answers 11 Views
TextArea
ReverseBLT
Top achievements
Rank 1
Iron
ReverseBLT asked on 06 Jun 2025, 02:33 PM

I have a TextArea that I need to remove the ability from pressing Enter to go to the new line and instead call a function I have created.
I would however like to keep all other functionality such as Shift+Enter going to a new line.

Here is my TextArea:

<TelerikTextArea Class="no-resize pl-2 mr-2 w-100" @bind-Value="@NewMessage" Placeholder="Type your message" SpellCheck="true"/>

No answers yet. Maybe you can help?

Tags
TextArea
Asked by
ReverseBLT
Top achievements
Rank 1
Iron
Share this question
or