Merge pull request #2302 from dkc-1379/patch-1

Distribute the currently active input element to each virtual keyboard instance.
This commit is contained in:
Francisco Hodge 2024-07-10 01:56:36 -04:00 committed by GitHub
commit 033c2aff60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(