From d004bd256d89edea6a0ff808dab2380024aa3407 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Fri, 24 Mar 2023 14:56:25 -0700 Subject: [PATCH] fix: Make Escape cancel changes in text fields. (#6923) --- core/field_input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_input.ts b/core/field_input.ts index 0257a345a..ba86b0449 100644 --- a/core/field_input.ts +++ b/core/field_input.ts @@ -444,7 +444,7 @@ export abstract class FieldInput extends Field { if (e.key === 'Enter') { WidgetDiv.hide(); dropDownDiv.hideWithoutAnimation(); - } else if (e.key === 'Esc') { + } else if (e.key === 'Escape') { this.setValue( this.htmlInput_!.getAttribute('data-untyped-default-value')); WidgetDiv.hide();