port bug
This commit is contained in:
parent
d0dc3d516a
commit
ce12cd0a52
|
@ -130,7 +130,11 @@ export class ScannerSettingDropdownComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
portPressed(evt: KeyboardEvent) {
|
||||
if (!Number.isInteger(Number(evt.key))) {
|
||||
const portNum = Number(evt.key);
|
||||
if (portNum === 0) {
|
||||
return false;
|
||||
}
|
||||
if (!Number.isInteger(portNum)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user