mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 21:06:03 +01:00
Allow numeric entry with "shift" when using dbl-click to reset
This commit is contained in:
parent
4e78f25149
commit
e5e9229eb2
1 changed files with 6 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ FaderWidget::set_tweaks (Tweaks t)
|
|||
bool
|
||||
FaderWidget::on_button_press_event (GdkEventButton* ev)
|
||||
{
|
||||
if (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS && (_tweaks & DoubleClickReset)) {
|
||||
if (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS && (_tweaks & DoubleClickReset) && !Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
_adjustment.set_value (_default_value);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -173,6 +173,11 @@ FaderWidget::on_button_release_event (GdkEventButton* ev)
|
|||
/* no motion - just a click */
|
||||
ev_pos = rint(ev_pos);
|
||||
|
||||
if ((_tweaks & DoubleClickReset) && Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* switch to edit mode */
|
||||
return true;
|
||||
}
|
||||
|
||||
if (ev->state & Keyboard::TertiaryModifier) {
|
||||
_adjustment.set_value (_default_value);
|
||||
} else if (ev->state & Keyboard::GainFineScaleModifier) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue