diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index 46f449a7..555e54ba 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -223,6 +223,20 @@ class SimpleKeyboard { document.addEventListener("touchend", handler); } + onInit = () => { + if(this.options.debug){ + console.log("Initialized"); + } + + /** + * Caret handling + */ + this.handleCaret(); + + if(typeof this.options.onInit === "function") + this.options.onInit(); + } + render = () => { /** * Clear keyboard