Allow to delete PC using <Del>

It currently only works if there’s no prior selection of notes
in which case the MRV handles the event.
This commit is contained in:
Robin Gareus 2015-05-03 02:18:40 +02:00
parent 62a2d6a064
commit 00e59940c8

View file

@ -212,6 +212,16 @@ PatchChange::event_handler (GdkEvent* ev)
}
break;
case GDK_KEY_RELEASE:
switch (ev->key.keyval) {
case GDK_BackSpace:
case GDK_Delete:
_region.delete_patch_change (this);
default:
break;
}
break;
case GDK_SCROLL:
if (ev->scroll.direction == GDK_SCROLL_UP) {
_region.step_patch(