Distribute the currently active input element to each virtual keyboard instance.

This commit is contained in:
dkc-1379 2024-07-10 11:29:21 +08:00
parent d9362f47d0
commit 0d68251514

View File

@ -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(