import Keyboard from '../lib'; import './css/MultipleInputsDemo.css'; class App { constructor(){ document.addEventListener('DOMContentLoaded', this.onDOMLoaded); this.layoutName = "default"; } onDOMLoaded = () => { this.keyboard = new Keyboard({ debug: true, layoutName: this.layoutName, onChange: input => this.onChange(input), onKeyPress: button => this.onKeyPress(button) }); /** * Adding preview (demo only) * In production, this would be part of your HTML file */ document.querySelector('.simple-keyboard').insertAdjacentHTML('beforebegin', `