mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
GUI: prevent stuck note if ImGui wants capture kb
This commit is contained in:
parent
7165d39105
commit
15f8a9b66f
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue