mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Consistently use context-menu button action
This fixes an issue where brining up a menu can directly activate an action in the menu. Notably on macOS. Nathan reports that this may also address #9515 Note: mac touchpads are not affected since right-click there is effectively a "press and hold".
This commit is contained in:
parent
43c5f0ab46
commit
c162aa7aca
22 changed files with 39 additions and 39 deletions
|
|
@ -2079,7 +2079,7 @@ Mixer_UI::group_display_button_press (GdkEventButton* ev)
|
|||
RouteGroup* group = (*iter)[group_columns.group];
|
||||
|
||||
if (Keyboard::is_context_menu_event (ev)) {
|
||||
_group_tabs->get_menu(group)->popup (1, ev->time);
|
||||
_group_tabs->get_menu(group)->popup (ev->button, ev->time);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -4107,7 +4107,7 @@ Mixer_UI::popup_scene_menu (GdkEventButton* ev, int scn_idx)
|
|||
items.back().set_sensitive (!PublicEditor::instance().get_selection().tracks.routelist ().empty ());
|
||||
}
|
||||
|
||||
menu->popup(1, ev->time);
|
||||
menu->popup(ev->button, ev->time);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue