From ce3439b079047db7a39a73a870fde42f6521c318 Mon Sep 17 00:00:00 2001 From: regulus79 <117475203+regulus79@users.noreply.github.com> Date: Wed, 4 Jun 2025 21:26:41 -0400 Subject: [PATCH] Fix Piano Roll key events from leaking to other instrument windows (#7915) --- src/gui/editors/PianoRoll.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 54fcaa449..ea73e1993 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -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();