From 027e5726176c8b98ac499e8fd06edb332978a88f Mon Sep 17 00:00:00 2001 From: Adam Al Shouli Date: Wed, 12 Nov 2025 14:34:43 +0300 Subject: [PATCH] fix: ae/oe chars being registered as two mistakes when mistyped (@thedev0ps) (#7090) ### Description Remove the ae/oe character check which makes it register as seperate characters of the next character is not ae/oe, causing two mistakes instead of one. ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language? - Make sure to follow the [languages documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md) - [ ] Add language to `packages/schemas/src/languages.ts` - [ ] Add language to exactly one group in `frontend/src/ts/constants/languages.ts` - [ ] Add language json file to `frontend/static/languages` - [ ] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - [ ] Add theme to `packages/schemas/src/themes.ts` - [ ] Add theme to `frontend/src/ts/constants/themes.ts` - [ ] Add theme css file to `frontend/static/themes` - [ ] Add some screenshot of the theme, especially with different test settings (colorful, flip colors) to your pull request - [ ] Adding a layout? - [ ] Make sure to follow the [layouts documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md) - [ ] Add layout to `packages/schemas/src/layouts.ts` - [ ] Add layout json file to `frontend/static/layouts` - [ ] Adding a font? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/FONTS.md) - [ ] Add font file to `frontend/static/webfonts` - [ ] Add font to `packages/schemas/src/fonts.ts` - [ ] Add font to `frontend/src/ts/constants/fonts.ts` - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. Closes #6482 --- frontend/src/ts/controllers/input-controller.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index 7cd5811d1..ce69932a6 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -431,18 +431,6 @@ async function handleChar( return; } - if (char === "œ" && TestWords.words.getCurrent()[charIndex] !== "œ") { - await handleChar("o", charIndex); - await handleChar("e", charIndex + 1); - return; - } - - if (char === "æ" && TestWords.words.getCurrent()[charIndex] !== "æ") { - await handleChar("a", charIndex); - await handleChar("e", charIndex + 1); - return; - } - console.debug("Handling char", char, charIndex, realInputValue); const now = performance.now();