monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

Typing accented letters timing issue in linux

Open sledgehammer999 opened this issue 1 year ago • 20 comments

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?

N/A

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

N/A

Does the issue happen in incognito mode when logged out?

Yes

Account name

No response

Account config

No response

Current Behavior

Typing in greek there are accents of characters like the word "έναρξη" (start). Typing accents is a 2 step process. You first hit the accent key (exactly to the right of the L key) and then the base character that gets accented (in this case the E key). On Windows, monkeytype works correctly. On linux, if you're fast enough in the 2 step process it doesn't work. On Windows when hitting the accent key nothing is presented visually. When you also hit the base key then you are presented with the accented character. On linux, when you hit the accent key you are presented with a "hanging" accent. Once you hit the base key the accent visual gets replaced with the accented character. The replacement visually looks like the "hanging" accent gets deleted and then a new character is inputted. I don't know if that is how it is actually implemented behind the scenes.

With monkeytype if you type the 2 keys fast enough it will register an error as if you had typed only the unaccented character aka it will register "ε" instead of "έ". If you intentionally pause between hitting the 2 keys monkeytype registers the accented character as it should.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS: EndeavourOS (arch based)
  • Browser: Firefox
  • Browser Version: 141.0
  • DE: KDE Plasma on wayland

Anything else?

No response

sledgehammer999 avatar Jul 29 '25 08:07 sledgehammer999

I'm having the same problem with Spanish. OS: Arch Browser: Zen (based on Firefox) DE: Hyprland

lluisYasT avatar Sep 01 '25 04:09 lluisYasT

Exactly same problem with Portuguese OS: Arch Browser: Firefox DE: Hyprland

holytwotwo avatar Sep 01 '25 21:09 holytwotwo

Is it any better here? https://monkey-type--preview-uae8wx67.web.app

Miodec avatar Sep 03 '25 08:09 Miodec

the provided preview url yields no significant difference to me in the matter of accents. Most accents still don't register. Thanks!

OS: Debian testing browser: firefox 141.0.3 DE: KDE plasma 6.3 on wayland

Cabanur avatar Sep 03 '25 09:09 Cabanur

So, if you pause in between the keypresses it works, but if you press them quickly you get an error? Can you reproduce it in zen mode? (test on live page this time)

Could you screen record?

Miodec avatar Sep 03 '25 09:09 Miodec

speed definitely has to do with it. Typing slowly will yield really good results. Hope this helps: https://github.com/user-attachments/assets/ce0830e6-015c-48e1-a289-bfebf3e50ff7

Cabanur avatar Sep 03 '25 09:09 Cabanur

Can you also screen record on the preview page? It also does this weird flashing?

Miodec avatar Sep 03 '25 09:09 Miodec

here: https://github.com/user-attachments/assets/51f90f10-249b-4efa-b18b-8ab98e06c6e2

Cabanur avatar Sep 03 '25 09:09 Cabanur

here: https://github.com/user-attachments/assets/51f90f10-249b-4efa-b18b-8ab98e06c6e2

Hm, thats extremely weird.

Miodec avatar Sep 03 '25 13:09 Miodec

https://monkey-type--preview-uae8wx67.web.app

Heres a new link. Can you:

  • open it and go to zen mode
  • open the browser console and clear it
  • try to reproduce the issue
  • as soon as one accented letter fails, stop
  • send me console output and a screen recording

Its really awkward trying to debug an issue that i dont experience so we gonna do it the hard way.

Miodec avatar Sep 03 '25 13:09 Miodec

On zen mode: https://github.com/user-attachments/assets/7c7eb9f8-1db9-474e-bac6-905abacb11fd

As it seems to give no useful output, I also did same test on "quotes" mode: https://github.com/user-attachments/assets/df7683be-9b66-423c-b72f-04393c0dd88c Couldn't help but notice that the console itself does gives a correct "ã" output character, but the string output doesn't seems to

is there any way to give you a more detailed console output?

Also, if it helps, I know that linux and windows treat special characters in different ways. While windows doesn't instantly output anything until you type a valid subsequent character (like a vowel for Portuguese) based on your input language, Linux doesn't care and lets you accent any letter based exclusively on your keyboard layout (e.g. ŕ ś ṕ)

holytwotwo avatar Sep 03 '25 14:09 holytwotwo

On my machine the results are the same as @holytwotwo's, though I could also upload a screen capture if requested.

Cabanur avatar Sep 03 '25 15:09 Cabanur

@holytwotwo @Cabanur

Sorry guys, i forgot about one step:

  • after you open the browser console, paste in toggleDebugLogs(), make sure those are enabled. then you will get way more output

New link: https://monkey-type--preview-uae8wx67.web.app

Miodec avatar Sep 04 '25 10:09 Miodec

@Miodec that link seems to be broken

Cabanur avatar Sep 04 '25 12:09 Cabanur

New link, should last a bit longer: https://monkey-type--preview-uae8wx67.web.app

Is this an issue that only appeared recently? Was this working fine for you all before? (couple months ago)

Miodec avatar Sep 04 '25 13:09 Miodec

here: console-export-2025-9-4_15-26-21.log

https://github.com/user-attachments/assets/f4167e22-c52e-4e4e-8eb6-867afa937247

Cabanur avatar Sep 04 '25 13:09 Cabanur

oh, and about if it was an issue previously, I don't really use the site that often. Last time I used it was around June, and I don't remember having any issues.

Cabanur avatar Sep 04 '25 13:09 Cabanur

Could you join the discord server and mesage me in #development channel? discord.gg/monkeytype?

Miodec avatar Sep 04 '25 14:09 Miodec

@Cabanur Can you ouput the console to a file insted? So i can see everything at once

Miodec avatar Sep 04 '25 15:09 Miodec

Issue should now be fully fixed. Please give it a test and let me know if you run into any issues.

Miodec avatar Sep 04 '25 20:09 Miodec