This commit is contained in:
insanity 2018-10-23 16:39:10 +09:00
parent d0dc3d516a
commit ce12cd0a52

View File

@ -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;
}
}