Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/blockly/core/field_input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
if (e.key === 'Enter') {
WidgetDiv.hideIfOwner(this);
dropDownDiv.hideWithoutAnimation();
// Prevent this from also being handled by the Enter keyboard shortcut,
// which can re-show the field editor after we just dismissed it.
e.stopPropagation();
} else if (e.key === 'Escape') {
this.setValue(
this.htmlInput_!.getAttribute('data-untyped-default-value'),
Expand Down
Loading