Hacker News new | ask | show | jobs
by tyingq 1801 days ago
Still sounds a bit clunky, as you would have people in line, and the page would need to smoothly be ready for the next person, deal with double-scans of the card, etc.

I'd certainly prefer something like un-typeable keycodes to listen for as start/end markers.

1 comments

> deal with double-scans of the card,

Presumably you know the length of the string generated by the barcode reader, so you just set the max length of the text field to that length, and/or ignore anything longer via JS.