mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
65975177cf
Replace the camera scanner in the Add inventory item dialog with support for a USB barcode scanner attached to the computer. A wedge scanner types the code as a fast keystroke burst ending in Enter; a global keydown listener (active while the dialog is open) buffers the burst by timing and routes it through the existing GS1 parser, so scanning a medication auto-fills barcode/expiry/lot without focusing any field. The barcode input also parses on Enter for manual entry. The camera BarcodeScanner component stays (still used by patient wallet import). i18n: replace the inventory.dialog.scan label with a scanHint across all five locales. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>