This commit is contained in:
@@ -17,13 +17,11 @@ export default function Page() {
|
||||
switch (event.key) {
|
||||
case ' ':
|
||||
event.preventDefault();
|
||||
console.log('Simulating barcode read');
|
||||
const barcode = generateRandomBarcode();
|
||||
setItem(barcodeToProduct(barcode));
|
||||
break;
|
||||
case 'Escape':
|
||||
event.preventDefault();
|
||||
console.log('Clearing bin selection');
|
||||
setBin(null);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user