Skip to content

Commit bf28613

Browse files
authored
Fix the new line when pressing enter in textarea widget (#3982)
1 parent 6b29a24 commit bf28613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/controls/src/widget_string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ export class TextareaView extends StringView {
390390

391391
events(): { [e: string]: string } {
392392
return {
393-
'keydown input': 'handleKeyDown',
394-
'keypress input': 'handleKeypress',
393+
'keydown textarea': 'handleKeyDown',
394+
'keypress textarea': 'handleKeypress',
395395
'input textarea': 'handleChanging',
396396
'change textarea': 'handleChanged',
397397
};

0 commit comments

Comments
 (0)