mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
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:
parent
62a2d6a064
commit
00e59940c8
1 changed files with 10 additions and 0 deletions
|
|
@ -212,6 +212,16 @@ PatchChange::event_handler (GdkEvent* ev)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case GDK_SCROLL:
|
||||||
if (ev->scroll.direction == GDK_SCROLL_UP) {
|
if (ev->scroll.direction == GDK_SCROLL_UP) {
|
||||||
_region.step_patch(
|
_region.step_patch(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue