Skip to content

PressedKeys not properly clearing key on shift combinations #230

Closed
@reinhard-sanz

Description

@reinhard-sanz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions