0

I want to specify in an input whether this is User Type or Barcode Scanner ?

<input type="text" class="form-control" id="scan">

$('#scan').scannerDetection(function() {
   alert();
});

https://github.com/kabachello/jQuery-Scanner-Detection

I used this but I can't determine the user typing.

  • Being a scanner-based application, how/why would it detect/expect user typing? – Paul T. May 29 '22 at 23:43
  • Brother, I don't want to set two inputs, one for the name of the product and one for the barcode, I want to use one input If user typed search for name and if barcode scanner search for barcode – Alan Faruq May 29 '22 at 23:49
  • Please note that the referral is no longer maintained. That page and its successor, [onScan.js](https://github.com/axenox/onscan.js), also have a lot of configuration information to separate human keystrokes from barcode scanner notifications. Isn't it too lazy to think that you can isolate them without setting anything? Please consider the hardware/software settings according to those documents. – kunif May 30 '22 at 00:49
  • These articles may be helpful. [onScan.js - hardware barcode and RFID scanners in web apps](https://a.kabachnik.info/onscan-js.html), [onscan.js - Using onscan to build a barcode web scanning application](https://hadleybradley.com/technical/barcode-scanning.html), [Javascript: How to read a hand held barcode scanner best?](https://stackoverflow.com/q/21633537/9014308), [How do I distinguish between a scanner input and keyboard input in Javascript?](https://stackoverflow.com/q/53573584/9014308) – kunif May 30 '22 at 01:33

0 Answers0