Enable some key release event forwarding

This is needed for the virtual MIDI keyboard to trigger note-off events
This commit is contained in:
Robin Gareus 2019-11-22 22:12:48 +01:00
parent ceee42f7af
commit c456006f82
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 18 additions and 4 deletions

View file

@ -439,13 +439,13 @@ PluginUIWindow::on_key_release_event (GdkEventKey *event)
if (_pluginui) {
if (_pluginui->non_gtk_gui()) {
_pluginui->forward_key_event (event);
return true;
}
}
} else {
gtk_window_propagate_key_event (GTK_WINDOW(gobj()), event);
}
/* don't forward releases */
return true;
return relay_key_press (event, this);
}
void