mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-04 00:12:58 +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>
|
<body>
|
||||||
<div class="simple-keyboard"></div>
|
<div class="simple-keyboard"></div>
|
||||||
<script src="https://cdn.rawgit.com/hodgef/simple-keyboard/d477c35c/build/index.js"></script>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
````
|
````
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "simple-keyboard",
|
"name": "simple-keyboard",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"description": "On-screen Virtual Keyboard",
|
"description": "On-screen Virtual Keyboard",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user