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

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

View File

@ -10,3 +10,7 @@ input {
.simple-keyboard {
max-width: 850px;
}
.simple-keyboard.hg-theme-default.myTheme {
background-color: #bde6c6;
}