mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 08:32:57 +08:00
Distribute the currently active input element to each virtual keyboard instance.
This commit is contained in:
parent
d9362f47d0
commit
0d68251514
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user