Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 3.1.x thinks I'm sending lots of keys #82

Closed
yyolk opened this issue Mar 7, 2024 · 4 comments
Closed

[BUG] 3.1.x thinks I'm sending lots of keys #82

yyolk opened this issue Mar 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@yyolk
Copy link

yyolk commented Mar 7, 2024

Describe the bug 🐛

I've tried reinstalling and deleting my settings

When running smassh @ 3.1.0 - it interprets each character I write as more than one

To Reproduce 🐣

  1. Delete smassh configuration json
  2. Install 3.1.0 via pipx, with pipx install smassh
  3. Start smassh, it interprets each character as more than one

Expected behavior 🤔

Only one character is pressed per key.

Screenshots 🧐

typing 'home', the first character is recognized, but thinks I also pressed many more I guess, proceeding to continue to type ome- the cursor is placed on the last character of the 2nd word, 8 characters away or double in length from where it should be.
image

Your operating system name

Mac

Your operating system version

Sonoma 14.3.1

Additional context 📝

If I delete the configuration and downgrade to smassh==3.0.*, with:

  • pipx uninstall smassh
  • rm ~/Library/Application\ Support/smassh/smassh.json (where smassh keeps its configuration instead of $HOME)
  • pipx install smassh==3.0.*
  • Run smassh - it works as it used to, and correctly

If I don't delete my configuration, other weird things happen like not interpreting any mistakes and not changing character colors.

@yyolk yyolk added the bug Something isn't working label Mar 7, 2024
@kraanzu
Copy link
Owner

kraanzu commented Mar 9, 2024

Hmm.. If deleting the config worked, a certain setting is responsible for the behavior. Can you replicate the behavior and paste the setting file here? Thanks :)

@jaxvanyang
Copy link
Contributor

jaxvanyang commented Mar 14, 2024

image

Same issue here, smassh thinks I type twice every time, look the pattern ("tt" is marked correct, others are correct then incorrect). Backspace is also consider typing twice every time. Deleting config doesn't work.

image

But when I enter the next test, this issue is gone.

My system is Arch Linux in WSL, smassh v3.1.0 is installed from AUR, it's the same file from GitHub release.

Default config may not help, pasting anyway:

{"difficulty": "normal", "blind_mode": false, "min_speed": 0, "min_accuracy": 0, "min_burst": 0, "force_correct": false, "confidence_mode": "off", "capitalization_mode": "off", "cursor_buddy_speed": 0, "tab_reset": false, "language": "english", "numbers": false, "punctuations": false, "mode": "words", "words_count": 30, "time_count": 30, "caret_style": "block", "writing mode": "words", "theme": "nord"}

UPD

Changing to any window solves this issue, i.e., settings, help, about.

@kraanzu
Copy link
Owner

kraanzu commented Mar 14, 2024

Changing to any window solves this issue, i.e., settings, help, about.

Ah I see now, maybe the key event is propagating.
Thanks for opening a PR!

Copy link

Did we solve your problem?

Glad we could help!
Don't forget to star the repository!
@kraanzu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants