Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

TextArea ENTER new line

Grzegorz Chilkiewicz
10 years ago Feb 13, 2012 4:24pm
Mathias Clerc
10 years ago Feb 14, 2012 1:25am

The text area demo here does just that.
I checked the source code of this demo (click on "View Source") and there is nothing special...

Do you have any listener which could be reacting to the enter key before ?
Is it inside a form (maybe it is handling the enter key before the field) ?
Can you try wrapping it inside a Panel ? (Panel separate listeners' scope)

Grzegorz Chilkiewicz
10 years ago Feb 15, 2012 11:26am
David Wall
9 years ago May 10, 2012 11:51pm
Tobias Demuth
9 years ago May 12, 2012 11:18am

Add a Focus- and a BlurListener to your TextArea dis- / enabling the sortcut on the save-button whenever the user clicks into the TextArea.