There was a similar problem. Barcode scanners work like a keyboard, they just enter a string. Scanners can usually be configured to add a prefix or postfix for characters read from a barcode, often based on the type of barcode (may have a different configuration for code 39 than for code 128, for example.)
But the problem that we had in our last project was that the guys who developed the cashier system also set up a barcode scanner, and they put CTRL-B as a prefix in front of each barcode. In Firefox, this opens bookmarks, so you are trapped.
I mean, connecting the scanner is very simple, but you need to take care of the scanner configuration if there is a control character that can be captured by the browser or other software. On the other hand, it can be very useful, because you can enter a line feed after each barcode or something else that helps you split them.
Another important aspect in our case was time. Barcode scanners enter the character pretty quickly, but at least the one we had entered it one by one. Therefore, when we tested our functionality, there was a huge difference between a line pasted from the clipboard or a line scanned from a barcode. This was relevant for the Ajax-Calls we made (where in our case there were a lot of problems with this on the ZK website).
Hope this helps.
source share