Skip to content

Commit 9151db7

Browse files
committed
Bugfix: fix return key submission of IntText widgets
1 parent 9b5a476 commit 9151db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/controls/src/widget_int.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,10 @@ export class IntTextView extends DescriptionView {
600600
*/
601601
handleKeypress(e: KeyboardEvent): void {
602602
if (/[e,.\s]/.test(String.fromCharCode(e.keyCode))) {
603+
// Handle return key submission
604+
if (e.keyCode === 13) {
605+
this.handleChanged(e);
606+
}
603607
e.preventDefault();
604608
}
605609
}

0 commit comments

Comments
 (0)