group->ungrab(ev->button.time);
switch (_state) {
case Pressed: // Clicked
- if (ev->button.button == 3) {
+ if (ev->button.button == 1) {
+ clear_selection();
+ } else if (ev->button.button == 3) {
nframes_t event_frame = midi_view()->editor.pixel_to_frame(event_x);
midi_view()->editor.snap_to(event_frame);
event_x = midi_view()->editor.frame_to_pixel(event_frame);
bool note_canvas_event(GdkEvent* ev);
void clear_selection_except(ArdourCanvas::CanvasMidiEvent* ev);
+ void clear_selection() { clear_selection_except(NULL); }
double _default_note_length;