Signed-off-by: Bill Erickson <berickxx@gmail.com>
});
}
+ // Focus and select the next editable barcode.
selectNextBarcode(id: number, previous?: boolean) {
let found = false;
let nextId: number = null;
if (nextId !== null) { return; }
// In case we have to loop back to the first copy.
- if (firstId === null) { firstId = copy.id(); }
+ if (firstId === null && this.barcodeCanChange(copy)) {
+ firstId = copy.id();
+ }
if (found) {
- if (nextId === null) {
+ if (nextId === null && this.barcodeCanChange(copy)) {
nextId = copy.id();
}
} else if (copy.id() === id) {