mirror of https://github.com/shadowfacts/type.git
ignore invalid and let him proceed
This commit is contained in:
parent
355a64ae18
commit
77048e3df3
27
js/type.js
27
js/type.js
|
@ -101,8 +101,6 @@ function setup(data, mime) {
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
extraKeys: {
|
extraKeys: {
|
||||||
Up: () => {},
|
|
||||||
Down: () => {},
|
|
||||||
Left: () => {},
|
Left: () => {},
|
||||||
Right: () => {}
|
Right: () => {}
|
||||||
}
|
}
|
||||||
|
@ -274,24 +272,25 @@ function moveToEndOfPreviousLine() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isComplete() {
|
function isComplete() {
|
||||||
|
console.log('isComplete');
|
||||||
if (!areAllNextLinesEmpty()) {
|
if (!areAllNextLinesEmpty()) {
|
||||||
if (incompleteMark.lines.length != 0) {
|
if (incompleteMark.lines.length != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < invalids.length; i++) {
|
// for (var i = 0; i < invalids.length; i++) {
|
||||||
let arr = invalids[i];
|
// let arr = invalids[i];
|
||||||
if (arr) {
|
// if (arr) {
|
||||||
for (var j = 0; j < arr.length; j++) {
|
// for (var j = 0; j < arr.length; j++) {
|
||||||
// invalid marks are sometimes cleared but not removed
|
// // invalid marks are sometimes cleared but not removed
|
||||||
// this can be checked by checking mark.lines.length != 0
|
// // this can be checked by checking mark.lines.length != 0
|
||||||
if (arr[j] && arr[j].lines.length != 0) {
|
// if (arr[j] && arr[j].lines.length != 0) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue