This commit is contained in:
Jack 2021-11-07 22:41:37 +00:00
commit a06be194b3
2 changed files with 14 additions and 3 deletions

View file

@ -398,6 +398,9 @@ function handleChar(char, charIndex) {
char +
TestLogic.input.current.substring(charIndex + 1);
MonkeyPower.addPower(thisCharCorrect);
TestStats.incrementAccuracy(thisCharCorrect);
if (!thisCharCorrect && Misc.trailingComposeChars.test(resultingWord)) {
TestLogic.input.current = resultingWord;
TestUI.updateWordElement();
@ -405,9 +408,6 @@ function handleChar(char, charIndex) {
return;
}
MonkeyPower.addPower(thisCharCorrect);
TestStats.incrementAccuracy(thisCharCorrect);
if (!thisCharCorrect) {
TestStats.incrementKeypressErrors();
TestStats.pushMissedWord(TestLogic.words.getCurrent());

View file

@ -514,6 +514,17 @@ const layouts = {
"ـ", "ظ'", "ط", "ذئ", "دء", "زأ", "رإ", "وؤ", "،>", ".<", "/؟",
" "
]
},
brasileiro_nativo: {
keymapShowTopRow: false,
iso: true,
keys: [
"=+", "1!", "2@", "3#", "4$", "5%", "6¨", "7&", "8*", "9(", "0)", "[{", "]}",
"/?", ",<", ".>", "hH", "xX", "wW", "lL", "tT", "cC", "pP", "~^", "-_", "'\"",
"iI", "eE", "aA", "oO", "uU", "mM", "dD", "sS", "rR", "nN", "´`",
";:", "yY", "çÇ", "jJ", "bB", "kK", "qQ", "vV", "gG", "fF", "zZ", "\\|",
" "
]
}
}
export default layouts;