Pressing any key on the PC keyboard triggers another key that remains active until the mouse is clicked on it, as can be seen in this gif, in which I press note 72 (key A), and note 89 as well activates
this application only contains that component, and I did it expressly to make sure other code wasn’t influencing it.
The strange thing is that the bug sometimes disappears, and when it does, it does so in the application where the bug appeared initially. It also disappears without knowing the reason, so I waited for it to reappear again to capture it and report it.
From what I have been able to investigate, the note that is active for no reason corresponds to the mapped octave (6) x 12 + 17. That is, 89
That 17 corresponds to the last index of “keypresses”, since I have seen that it currently has a size of 18.
for some reason the last reference (17) of keyPresses is “currently down”. so activate the corresponding note
I’ve tried to trace more, but I can’t follow it. Has this happened to anyone else?
the bug disappears when restarting the computer and appears at another unexpected moment, maybe it could be related to memory