Bar code scanners and scanner control are critical for us. Right now we use the Scanner module in Vision. All our scanners that we use with Ignition have a preamble of \u0002 and a \u0003 postamble around the scanner data.
In thinking about your component more… In JS in the browser, can you monitor keystrokes regardless of focus? If so, that component could “activate” similar to the current scanner module when a specific character (or sequence) is seen. The contents of the typing after the preamble could then be made available via an event handler.
This not only helps with barcode scanners, but anything that follows HID protocol. (We have done the same with pcProx RFID readers). As long as you can configure some predictable preamble and postamble/timeout to how the data is wrapped by the HID device.