mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 11:49:33 +01:00
[Summary] Bug fix #45623 "Reset pan does not work (win)"
[Reviewed] YPozdnyakov
This commit is contained in:
parent
b2f9c8cbcc
commit
0702f23bb1
1 changed files with 9 additions and 1 deletions
|
|
@ -164,8 +164,16 @@ MonoPanner::on_button_press_event (GdkEventButton* ev)
|
|||
return false;
|
||||
}
|
||||
|
||||
int alt_modifier;
|
||||
#ifdef __APPLE__
|
||||
alt_modifier = Keyboard::Level4Modifier; /* Alt */
|
||||
#else
|
||||
/* Anything except OS X */
|
||||
alt_modifier = Keyboard::SecondaryModifier; /* Alt */
|
||||
#endif
|
||||
|
||||
if (ev->type == GDK_BUTTON_PRESS) {
|
||||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::Level4Modifier)) {
|
||||
if (Keyboard::modifier_state_contains (ev->state, alt_modifier)) {
|
||||
position_control->set_value (0.5);
|
||||
_dragging = false;
|
||||
_tooltip.target_stop_drag ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue