From 0d682515148329f6dfc905fe18cd2bf81bdccdb6 Mon Sep 17 00:00:00 2001 From: dkc-1379 <3117538764@qq.com> Date: Wed, 10 Jul 2024 11:29:21 +0800 Subject: [PATCH] Distribute the currently active input element to each virtual keyboard instance. --- src/lib/components/Keyboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index 76abcfdd..4385eee9 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -1260,7 +1260,7 @@ class SimpleKeyboard { /** * Tracking current input in order to handle caret positioning edge cases */ - this.activeInputElement = event.target; + instance.activeInputElement = event.target; if (instance.options.debug) { console.log( @@ -1284,7 +1284,7 @@ class SimpleKeyboard { /** * Resetting activeInputElement */ - this.activeInputElement = null; + instance.activeInputElement = null; if (instance.options.debug) { console.log(