GUI: prevent stuck note if ImGui wants capture kb

This commit is contained in:
tildearrow 2022-01-17 21:34:57 -05:00
parent 7165d39105
commit 15f8a9b66f

View file

@ -3057,6 +3057,13 @@ bool FurnaceGUI::loop() {
case SDL_KEYUP:
if (!ImGui::GetIO().WantCaptureKeyboard) {
keyUp(ev);
} else {
if (noteOffOnRelease) {
if (ev.key.keysym.scancode==noteOffOnReleaseKey) {
noteOffOnRelease=false;
e->noteOff(noteOffOnReleaseChan);
}
}
}
break;
case SDL_QUIT: