Skip to content

Commit

Permalink
fix(scanner): do not process scanner string while in a input field
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Dec 12, 2024
1 parent 5b00be1 commit 2ea92f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/bl-common/blc-scanner/blc-scanner.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export class BlcScannerDirective {
return;
}

if (event.key === "Enter") {
const target = event.target as HTMLElement;
if (event.key === "Enter" && target.tagName !== "INPUT") {
this.processScannerString();
this.scannerString = "";
} else if (event.key.length === 1) {
Expand Down

0 comments on commit 2ea92f5

Please sign in to comment.