Check the callback onKeyDetect
in the configuration below to find out, what prefix/suffix your scanner uses, if the scan button has a separate key code and what other key codes occur during scanning.
onScan.js Playground
This demo page lets you play around with the settings of onScan.js to find the best setup for a specific scanner. Just connect the scanner to your device and open this page in it's browser - than start scanning and watch the output in the console-box below.