mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-03 16:02:56 +08:00
Updated examples
This commit is contained in:
parent
d42036ec3e
commit
c239e21625
14
README.md
14
README.md
@ -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>
|
||||
````
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user