When using sustain in toggle mode, the application loses synchronization of the sustain state after losing window focus (Alt+Tab).
Upon returning to the app, the sustain state becomes inconsistent:
- The visual/uI state indicates sustain is off
- Internally, the toggle state appears out of sync
As a result, pressing the sustain key (space) once does not correctly toggle the state. I must press it twice to turn it on again.
Additionally, the audio is affected, and the notes are cut abruptly.