Skip to content

Commit b4294f6

Browse files
committed
feat: add option to respond to touchStart
1 parent a50a2e2 commit b4294f6

File tree

3 files changed

+115
-66
lines changed

3 files changed

+115
-66
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ https://github.com/icebob/vue-touch-keyboard/archive/master.zip
6060
input: null,
6161
options: {
6262
useKbEvents: false,
63-
preventClickEvent: false
63+
preventClickEvent: false,
64+
touchStart: false
6465
}
6566
},
6667
@@ -103,6 +104,7 @@ Option | Default | Accepted values | Description
103104
----------- | -------- | --------------- | -----------
104105
`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.
105106
`preventClickEvent` | `false` | `boolean` | If true, the component will `preventDefault` the click event.
107+
`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.
106108

107109
## Built-in layouts
108110
* `normal` - Normal full layout. Similar as real keyboard layouts

0 commit comments

Comments
 (0)