From 0726537b79a84fd618e89dc50042955aaad35c8a Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 26 Apr 2024 11:49:07 -0400 Subject: [PATCH] Fix #6481: KeyFilter handle AZERTY and dead keys --- components/lib/keyfilter/KeyFilter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lib/keyfilter/KeyFilter.js b/components/lib/keyfilter/KeyFilter.js index d228d20a3c..bd9f7462ef 100644 --- a/components/lib/keyfilter/KeyFilter.js +++ b/components/lib/keyfilter/KeyFilter.js @@ -64,7 +64,8 @@ export const KeyFilter = { return; } - const isPrintableKey = key.length === 1; + // some AZERTY keys come in with 2 chars like ยดรง if Dead key is pressed first + const isPrintableKey = key.length <= 2; if (!isPrintableKey) { return;