From 07f0e2f5babd0e58e99deab116edfdc6675dba94 Mon Sep 17 00:00:00 2001 From: Morez <50699824+ousmorez@users.noreply.github.com> Date: Sat, 3 Dec 2022 09:09:55 -0800 Subject: [PATCH] resolve #1080 --- src/scripts/choices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index c0491c6..d5af78d 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -1456,10 +1456,10 @@ class Choices implements Choices { PAGE_DOWN_KEY, } = KEY_CODES; - if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar && event.key.length === 1) { + if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar) { this.showDropdown(); - if (!this.input.isFocussed) { + if (!this.input.isFocussed && event.key.length === 1) { /* We update the input value with the pressed key as the input was not focussed at the time of key press