Merge pull request #104 from strfry/master
Ignore space in Barcode Key Handler
This commit is contained in:
commit
a5478cb927
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function barcodeKeyPress( event ) { // takes input from either keyboard or barco
|
||||||
barcodeBuf = hideBarcode()
|
barcodeBuf = hideBarcode()
|
||||||
}
|
}
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
} else if ( event.keyCode == 0 ) { // e.g. F-Keys are 112 to 123, A-Za-z0-9 all are 0.
|
} else if ( event.keyCode == 0 && key != " " ) { // e.g. F-Keys are 112 to 123, A-Za-z0-9 all are 0.
|
||||||
console.log( "some input: " + barcodeBuf + "[" + key + "] <= {" + event.keyCode + "}" )
|
console.log( "some input: " + barcodeBuf + "[" + key + "] <= {" + event.keyCode + "}" )
|
||||||
barcodeBuf += key
|
barcodeBuf += key
|
||||||
showBarcode( barcodeBuf )
|
showBarcode( barcodeBuf )
|
||||||
|
|
Loading…
Reference in a new issue