summaryrefslogtreecommitdiff
path: root/gtk2_ardour/patch_change.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-05-03 02:18:40 +0200
committerRobin Gareus <robin@gareus.org>2015-05-03 02:20:28 +0200
commit00e59940c8182f32d945c476b90816550e6bce28 (patch)
tree3f71c776fc375bf77316df322b0be02b24873499 /gtk2_ardour/patch_change.cc
parent62a2d6a0647cd636f8711acceccc22142bb899aa (diff)
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.
Diffstat (limited to 'gtk2_ardour/patch_change.cc')
-rw-r--r--gtk2_ardour/patch_change.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/patch_change.cc b/gtk2_ardour/patch_change.cc
index 601011d017..1bcf8d940e 100644
--- a/gtk2_ardour/patch_change.cc
+++ b/gtk2_ardour/patch_change.cc
@@ -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(