Skip to content

Commit a177ce7

Browse files
authored
Merge pull request #2975 from agoose77/bugfix-inttext-return-key
Bugfix: fix return key submission of IntText widgets
2 parents 940c10d + 738f057 commit a177ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/controls/src/widget_int.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ export class IntTextView extends DescriptionView {
602602
* Handles key press
603603
*/
604604
handleKeypress(e: KeyboardEvent): void {
605-
if (/[e,.\s]/.test(String.fromCharCode(e.keyCode))) {
605+
if (/[e,. ]/.test(String.fromCharCode(e.keyCode))) {
606606
e.preventDefault();
607607
}
608608
}

0 commit comments

Comments
 (0)