mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
[Summary] Alt+Click on horizontal fader to set its value to default (on OS Windows)
[Review] Nobody
This commit is contained in:
parent
281394cf91
commit
ec5f68635f
1 changed files with 10 additions and 1 deletions
|
|
@ -2939,7 +2939,16 @@ Editor::snap_to_internal (framepos_t& start, int32_t direction, bool for_mark)
|
|||
bool
|
||||
Editor::vertical_fader_pressed(GdkEventButton* ev)
|
||||
{
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::Level4Modifier)) {
|
||||
int alt_modifier;
|
||||
#ifdef __APPLE__
|
||||
alt_modifier = Keyboard::Level4Modifier;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
alt_modifier = Keyboard::SecondaryModifier;
|
||||
#endif
|
||||
|
||||
if (Keyboard::modifier_state_equals (ev->state, alt_modifier)) {
|
||||
|
||||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||
(*i)->set_height ( 2*22 ); // set height to default value 2*22 pix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue