Skip to content

Commit

Permalink
Merge pull request #2975 from agoose77/bugfix-inttext-return-key
Browse files Browse the repository at this point in the history
Bugfix: fix return key submission of IntText widgets
  • Loading branch information
jasongrout committed Feb 19, 2022
2 parents 940c10d + 738f057 commit a177ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controls/src/widget_int.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ export class IntTextView extends DescriptionView {
* Handles key press
*/
handleKeypress(e: KeyboardEvent): void {
if (/[e,.\s]/.test(String.fromCharCode(e.keyCode))) {
if (/[e,. ]/.test(String.fromCharCode(e.keyCode))) {
e.preventDefault();
}
}
Expand Down

0 comments on commit a177ce7

Please sign in to comment.