mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
button click (release, to be precise) within the canvas drop zone cancels all object and track selections
This commit is contained in:
parent
3624d93001
commit
b46652c3c9
1 changed files with 12 additions and 1 deletions
|
|
@ -1111,8 +1111,19 @@ Editor::canvas_note_event (GdkEvent *event, ArdourCanvas::Item* item)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Editor::canvas_drop_zone_event (GdkEvent* /*event*/)
|
Editor::canvas_drop_zone_event (GdkEvent* event)
|
||||||
{
|
{
|
||||||
|
switch (event->type) {
|
||||||
|
case GDK_BUTTON_RELEASE:
|
||||||
|
if (event->button.button == 1) {
|
||||||
|
selection->clear_objects ();
|
||||||
|
selection->clear_tracks ();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue