From 4ba3324240f1256dbc3f7a84b80d4491a7c2ce85 Mon Sep 17 00:00:00 2001 From: pooooooooods <92645330+pooooooooods@users.noreply.github.com> Date: Mon, 8 Nov 2021 03:58:36 +0530 Subject: [PATCH 1/2] Incement accuracy even for trailingComposeChars (#2062) Co-authored-by: Aditya Pudipeddi --- src/js/input-controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index c55f31665..24eebdfb9 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -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()); From 04f7149be27a315020c58acaca6d78759ae19d11 Mon Sep 17 00:00:00 2001 From: Arthur Nunes Date: Sun, 7 Nov 2021 22:29:57 +0000 Subject: [PATCH 2/2] Add brasileiro nativo layout (#2066) Added another keyboard layout, the Portuguese(Brazil, Nativo). Not widely used, but surely a great layout for people that write in Portuguese. --- src/js/layouts.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/js/layouts.js b/src/js/layouts.js index e1944c1b3..aafdbc2e6 100644 --- a/src/js/layouts.js +++ b/src/js/layouts.js @@ -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;