mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-16 16:43:46 +08:00
Added multiple inputs live demo
This commit is contained in:
parent
66ae70f29a
commit
e7b604f6b1
@ -271,7 +271,7 @@ let input = keyboard.getInput("inputName");
|
|||||||
|
|
||||||
### setInput
|
### setInput
|
||||||
|
|
||||||
> Set the keyboard's input. Useful if you want the keybord to initialize with a default value, for example.
|
> Set the keyboard's input. Useful if you want to track input changes made outside simple-keyboard.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// For default input (i.e. if you have only one)
|
// For default input (i.e. if you have only one)
|
||||||
@ -348,6 +348,8 @@ For example:
|
|||||||
|
|
||||||
> [See full example](https://github.com/hodgef/simple-keyboard/blob/master/src/demo/MultipleInputsDemo.js).
|
> [See full example](https://github.com/hodgef/simple-keyboard/blob/master/src/demo/MultipleInputsDemo.js).
|
||||||
|
|
||||||
|
[](https://codesandbox.io/s/43nm6v4xyx?module=%2Fsrc%2Findex.js)
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
[https://franciscohodge.com/simple-keyboard/demo](https://franciscohodge.com/simple-keyboard/demo)
|
[https://franciscohodge.com/simple-keyboard/demo](https://franciscohodge.com/simple-keyboard/demo)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "simple-keyboard",
|
"name": "simple-keyboard",
|
||||||
"version": "2.3.3",
|
"version": "2.3.4",
|
||||||
"description": "On-screen Virtual Keyboard",
|
"description": "On-screen Virtual Keyboard",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user