mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
use GDK event mask for Alt, rather than attempt platform-specific translation from ardour codebase meta-modifiers
This commit is contained in:
parent
52f77a562b
commit
b0d416f8b0
1 changed files with 3 additions and 10 deletions
|
|
@ -2927,16 +2927,9 @@ Editor::snap_to_internal (framepos_t& start, int32_t direction, bool for_mark)
|
|||
bool
|
||||
Editor::vertical_fader_pressed(GdkEventButton* ev)
|
||||
{
|
||||
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)) {
|
||||
/* MOD1 == "Alt" */
|
||||
|
||||
if (Keyboard::modifier_state_equals (ev->state, GDK_MOD1_MASK)) {
|
||||
|
||||
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