Skip to content

feat: add option to respond to touchStart #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ https://github.com/icebob/vue-touch-keyboard/archive/master.zip
input: null,
options: {
useKbEvents: false,
preventClickEvent: false
preventClickEvent: false,
touchStart: false
}
},

Expand Down Expand Up @@ -103,6 +104,7 @@ Option | Default | Accepted values | Description
----------- | -------- | --------------- | -----------
`useKbEvents` | `false` | `boolean` | If true, the component will generate a `keydown` event and trigger it. If it returns with `false`, it won't insert the new character.
`preventClickEvent` | `false` | `boolean` | If true, the component will `preventDefault` the click event.
`touchStart` | `false` | `boolean` | If true, the component will respond to `touchStart` event on touch devices (this will trigger the key when finger touches the screen and not when it leaves it as a click event does). Desktop behaviour does not change.

## Built-in layouts
* `normal` - Normal full layout. Similar as real keyboard layouts
Expand Down
Loading