Fix Piano Roll key events from leaking to other instrument windows (#7915)

This commit is contained in:
regulus79
2025-06-04 21:26:41 -04:00
committed by GitHub
parent 8acc4ed3ae
commit ce3439b079

View File

@@ -1300,6 +1300,7 @@ void PianoRoll::keyPressEvent(QKeyEvent* ke)
// if a chord is set, play all chord notes (simulate click on all):
playChordNotes(key_num);
ke->accept();
return;
}
}
@@ -1536,6 +1537,7 @@ void PianoRoll::keyReleaseEvent(QKeyEvent* ke )
// if a chord is set, simulate click release on all chord notes
pauseChordNotes(key_num);
ke->accept();
return;
}
}
@@ -1560,6 +1562,9 @@ void PianoRoll::keyReleaseEvent(QKeyEvent* ke )
update();
}
break;
default:
ke->ignore();
break;
}
update();