mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +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:
|
case SDL_KEYUP:
|
||||||
if (!ImGui::GetIO().WantCaptureKeyboard) {
|
if (!ImGui::GetIO().WantCaptureKeyboard) {
|
||||||
keyUp(ev);
|
keyUp(ev);
|
||||||
|
} else {
|
||||||
|
if (noteOffOnRelease) {
|
||||||
|
if (ev.key.keysym.scancode==noteOffOnReleaseKey) {
|
||||||
|
noteOffOnRelease=false;
|
||||||
|
e->noteOff(noteOffOnReleaseChan);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
|
|
Loading…
Reference in a new issue