1
1
mirror of https://github.com/varkor/quiver.git synced 2024-09-17 17:09:31 +03:00

Extend the character set used for cell identifiers

This commit is contained in:
varkor 2020-11-21 21:18:43 +00:00
parent f06e713923
commit e1628be760

View File

@ -3148,11 +3148,11 @@ class Panel {
case "Select":
case "Toggle":
case "Create":
replaced = replaced.replace(/[^ASDFJKL |]/gi, "");
replaced = replaced.replace(/[^ASDFJKLGHEIRUCM |]/gi, "");
break;
case "Source":
case "Target":
replaced = replaced.replace(/[^ASDFJKL|]/gi, "");
replaced = replaced.replace(/[^ASDFJKLGHEIRUCM|]/gi, "");
break;
}
// We allow the pattern " | " to appear, just in case the user does decide to go
@ -4732,7 +4732,7 @@ class Cell {
// An ID used to allow the user to jump to this cell via the keyboard.
this.code = "";
const chars = "ASDFJKL".split("");
const chars = "ASDFJKLGHEIRUCM".split("");
for (let value = Cell.NEXT_ID++; value >= 0; value = Math.floor(value / chars.length) - 1) {
this.code = chars[value % chars.length] + this.code;
}