We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08f54db commit ba0c27cCopy full SHA for ba0c27c
1 file changed
packages/blockly/core/field_input.ts
@@ -601,6 +601,9 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
601
if (e.key === 'Enter') {
602
WidgetDiv.hideIfOwner(this);
603
dropDownDiv.hideWithoutAnimation();
604
+ // Prevent this from also being handled by the Enter keyboard shortcut,
605
+ // which can re-show the field editor after we just dismissed it.
606
+ e.stopPropagation();
607
} else if (e.key === 'Escape') {
608
this.setValue(
609
this.htmlInput_!.getAttribute('data-untyped-default-value'),
0 commit comments