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

PressedKeys not properly clearing key on shift combinations #230

Open
reinhard-sanz opened this issue Mar 7, 2025 · 0 comments
Open

PressedKeys not properly clearing key on shift combinations #230

reinhard-sanz opened this issue Mar 7, 2025 · 0 comments

Comments

@reinhard-sanz
Copy link

reinhard-sanz commented Mar 7, 2025

Describe the bug

In some cases when pressing shift and trying to add any special chars ($,&,%,() etc.) they are sometims not properly removed from the pressedKeys array.

Reproduction

svelte.dev/playground/6ac44aba47cf45a7a15654f918770d4b?version=5.22.5

It does not happen all the time and is a bit difficult to reproduce so you are gonna have to try a fews time to get the bug to show up, but it easiest if you press "shift" and then just hammer down the the special chars on your keyboard :)
But it definetely shows up.
(Same goes for "chars" that require a special combination to show up)

Update, you can reliably replicate this like this:

  1. Pressing and holding "Shift"
  2. Pressing and holding any special character e.g. "&"
  3. Letting go of "Shift"
  4. Letting go of the special char

Logs

System Info

Svelte 5.22.5
The Repl always pulls the newest runed version i think.

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant