We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da09a5 commit 0282d4eCopy full SHA for 0282d4e
src/text-expander-element.ts
@@ -187,10 +187,11 @@ class TextExpander {
187
}
188
189
onKeydown(event: KeyboardEvent) {
190
- if (event.key !== 'Escape' && (!this.menu || !this.combobox)) return
191
- this.deactivate()
192
- event.stopImmediatePropagation()
193
- event.preventDefault()
+ if (event.key === 'Escape' && (this.menu || this.combobox)) {
+ this.deactivate()
+ event.stopImmediatePropagation()
+ event.preventDefault()
194
+ }
195
196
197
0 commit comments