We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f94b3 commit c40cd1bCopy full SHA for c40cd1b
index.js
@@ -140,7 +140,7 @@ const barcodeHidReader = (function () {
140
shortState = CAPTURING
141
}
142
143
- if (shortState === CAPTURING) {
+ if (shortState === CAPTURING && e.key.length === 1) {
144
events.push(
145
Object.assign(new KeyboardEvent('keydown', e), { custom: true })
146
)
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "barcode-hid-reader",
3
- "version": "1.0.3",
+ "version": "1.0.4",
4
"description": "simple js lib for capturing data from HID barcode scanners",
5
"main": "index.js",
6
"scripts": {
0 commit comments