Tests update

This commit is contained in:
Francisco Hodge
2019-11-13 07:15:03 -05:00
parent 9273f3320e
commit 51a4f6d2a1
2 changed files with 18 additions and 0 deletions
+14
View File
@@ -33,6 +33,20 @@ class Demo {
console.log(this.keyboard);
setTimeout(this.keyboard.destroy, 10000);
setTimeout(() => {
this.keyboard = new Keyboard({
theme: "hg-theme-default myTheme",
onChange: input => this.onChange(input),
onKeyPress: button => this.onKeyPress(button),
debug: true,
onInit: () => {
console.log(
"Reinitialized simple-keyboard instance:",
this.keyboard.keyboardDOMClass
);
}
});
}, 15000);
/**
* Update simple-keyboard when input is changed directly