Danish "æ" is registered as "ae" – causes two errors instead of one
Did you clear cache before opening an issue?
- [x] I have cleared my cache
Is there an existing issue for this?
- [x] I have searched the existing issues
Does the issue happen when logged in?
Yes
Does the issue happen when logged out?
Yes
Does the issue happen in incognito mode when logged in?
Yes
Does the issue happen in incognito mode when logged out?
Yes
Account name
jacojoe
Account config
No response
Current Behavior
When using Monkeytype with the Danish language setting, typing the letter "æ" is registered as "ae". This leads to the following issues:
If you accidentally press "æ", Monkeytype registers it as two incorrect characters instead of one.
You need to press backspace twice to delete it, even though it's a single key on a Danish keyboard.
This disrupts the typing experience and makes error correction more difficult than it should be.
Expected Behavior
The letter "æ" should be treated as a single character, not expanded into "a" and "e". It should count as one keypress and one potential mistake – not two.
Steps To Reproduce
-
Set the language to Danish in Monkeytype.
-
Start a typing test.
-
Press the "æ" key incorrectly during typing.
-
Observe that it gets interpreted as "ae" and causes two errors.
Environment
- OS: macOS Ventura
- Browser: Firefox / Safari
- Browser Version: 137.0.2 / 18.4
Anything else?
No response
It seems the problematic file is frontend/src/ts/controllers/input-controller.ts at line 480. The oe character probably exhibits this behaviour as well.
The code is written in a way so that if the next character is not the ae symbol and you press ae it will process it as the two letters a and e instead
This could probably be fixed by just removing the special handler for the character in the code but I haven't tried it yet I'll try it when I get home
I see the pull request is not merged. I'm not getting that. Is this problem fixed or not
Whoever was making the pull request abandoned it for some reason that isn't clear
And I haven't gotten around to doing it
can i work on this issue? If yes Can you plese \assign-me