mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 08:32:57 +08:00
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:
commit
033c2aff60
@ -1260,7 +1260,7 @@ class SimpleKeyboard {
|
|||||||
/**
|
/**
|
||||||
* Tracking current input in order to handle caret positioning edge cases
|
* Tracking current input in order to handle caret positioning edge cases
|
||||||
*/
|
*/
|
||||||
this.activeInputElement = event.target;
|
instance.activeInputElement = event.target;
|
||||||
|
|
||||||
if (instance.options.debug) {
|
if (instance.options.debug) {
|
||||||
console.log(
|
console.log(
|
||||||
@ -1284,7 +1284,7 @@ class SimpleKeyboard {
|
|||||||
/**
|
/**
|
||||||
* Resetting activeInputElement
|
* Resetting activeInputElement
|
||||||
*/
|
*/
|
||||||
this.activeInputElement = null;
|
instance.activeInputElement = null;
|
||||||
|
|
||||||
if (instance.options.debug) {
|
if (instance.options.debug) {
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user