barcode.js: try to fix for chrome

This commit is contained in:
Astro 2017-11-07 20:53:10 +01:00
parent 2cb4a1b1c5
commit 56ce571432
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function barcodeKeyPress( event ) { // takes input from either keyboard or barco
barcodeBuf = hideBarcode()
}
event.preventDefault()
} else if ( event.keyCode == 0 && key != " " ) { // e.g. F-Keys are 112 to 123, A-Za-z0-9 all are 0.
} else if ( key && key != " " ) {
console.log( "some input: " + barcodeBuf + "[" + key + "] <= {" + event.keyCode + "}" )
barcodeBuf += key
showBarcode( barcodeBuf )