conform to platform expectations for scroomer select mouse ops
This commit is contained in:
parent
71ba96aa3b
commit
2e4ceaf34d
@ -662,9 +662,8 @@ PianoRollHeader::on_button_press_event (GdkEventButton* ev)
|
|||||||
int note = _view.y_to_note(ev->y);
|
int note = _view.y_to_note(ev->y);
|
||||||
bool tertiary = Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier);
|
bool tertiary = Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier);
|
||||||
bool primary = Keyboard::modifier_state_contains (ev->state, Keyboard::PrimaryModifier);
|
bool primary = Keyboard::modifier_state_contains (ev->state, Keyboard::PrimaryModifier);
|
||||||
bool toggle = (ev->state == GDK_CONTROL_MASK);
|
|
||||||
|
|
||||||
if (ev->type == GDK_2BUTTON_PRESS) {
|
if (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS) {
|
||||||
if (primary) {
|
if (primary) {
|
||||||
_adj.set_value (0.0);
|
_adj.set_value (0.0);
|
||||||
_adj.set_page_size (127.0);
|
_adj.set_page_size (127.0);
|
||||||
@ -679,7 +678,7 @@ PianoRollHeader::on_button_press_event (GdkEventButton* ev)
|
|||||||
} else if (tertiary && (ev->button == 1 || ev->button == 2)) {
|
} else if (tertiary && (ev->button == 1 || ev->button == 2)) {
|
||||||
ExtendNoteSelection (note); // EMIT SIGNAL
|
ExtendNoteSelection (note); // EMIT SIGNAL
|
||||||
return true;
|
return true;
|
||||||
} else if (toggle && (ev->button == 1 || ev->button == 2)) {
|
} else if (primary && (ev->button == 1 || ev->button == 2)) {
|
||||||
ToggleNoteSelection (note); // EMIT SIGNAL
|
ToggleNoteSelection (note); // EMIT SIGNAL
|
||||||
return true;
|
return true;
|
||||||
} else if (ev->button == 1 && note >= 0 && note < 128) {
|
} else if (ev->button == 1 && note >= 0 && note < 128) {
|
||||||
|
Loading…
Reference in New Issue
Block a user