Suppose I have two textboxes:
Take a look at github jQuery-Scanner-Detection
NPM Package jQuery-Scanner-Detection
jQuery Scanner Detection is a small plugin to detect when user use a scanner (barcode, QR Code...) instead of a keyboard, and call specific callbacks.