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 b34e00c commit ed4f888Copy full SHA for ed4f888
src/text-expander-element.ts
@@ -188,11 +188,10 @@ class TextExpander {
188
189
onKeydown(event: KeyboardEvent) {
190
if (event.key !== 'Escape') return
191
+ if (!this.menu || !this.combobox) return
192
this.deactivate()
- if (this.menu || this.combobox) {
193
- event.stopImmediatePropagation()
194
- event.preventDefault()
195
- }
+ event.stopImmediatePropagation()
+ event.preventDefault()
196
}
197
198
0 commit comments