Fixing barcode scanner adding unnecessary CR/LF line breaks into web forms
Root Cause Diagnosis Most barcode scanners operate in USB HID keyboard-wedge mode. After the decoded data, they append a configurable suffix, usually a carriage return (0x0D), a line feed (0x0A), or both, which the host receives as an Enter (or Ctrl+Enter, or Tab) keystroke. In a web form, Enter inside an <input> triggers implicit form … Read more