Updated examples

This commit is contained in:
Francisco Hodge 2018-04-24 10:06:23 -04:00
parent d42036ec3e
commit c239e21625
2 changed files with 15 additions and 1 deletions

View File

@ -77,6 +77,20 @@ export default App;
<body>
<div class="simple-keyboard"></div>
<script src="https://cdn.rawgit.com/hodgef/simple-keyboard/d477c35c/build/index.js"></script>
<script>
function keyboard_onChange(input){
console.log("Input chanfed", input);
}
function keyboard_onKeyPress(button){
console.log("Button pressed", button);
}
var myKeyboard = new Keyboard({
onChange: input => keyboard_onChange(input),
onKeyPress: button => keyboard_onKeyPress(button)
});
</script>
</body>
</html>
````

View File

@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.0.3",
"version": "2.0.4",
"description": "On-screen Virtual Keyboard",
"main": "build/index.js",
"scripts": {