simple-keyboard
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "simple-keyboard", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "On-screen Virtual Keyboard", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -80,2 +80,16 @@ # simple-keyboard | ||
<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> | ||
@@ -82,0 +96,0 @@ </html> |
596271
234