Midi keyboard, note keeps playing after changing instrument or closing dcore before releasing note.

• Jan 3, 2017 - 09:01
Reported version
S5 - Suggestion

When you have a midi keyboard connected and you have note input disabled musescore acts as a midi instrument using the sound of whatever stave you have selected. If I play a note and select another stave before I release the note, the note will keep on playing until I either select a note in the first first stave or I select the first stave again and play the same note again. Furthermore if I close the document while this happens the note keeps on playing.
This shouldn't be to hard to fix as you can simply send a note off signal to all notes of the instrument whenever you select another instrument.
This issue also seems to be present in 2.0.3