From e77fa3512ac0c9d697b9ad9620a5e955cf35209e Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 27 May 2020 16:03:40 +0200 Subject: [PATCH] DoubleSlider::Control -> Shift and Ctrl used as accelerators for moving thumbs with arrows key and mouse wheel --- src/slic3r/GUI/DoubleSlider.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp index 45e242709..384c984e5 100644 --- a/src/slic3r/GUI/DoubleSlider.cpp +++ b/src/slic3r/GUI/DoubleSlider.cpp @@ -1345,6 +1345,12 @@ void Control::move_current_thumb(const bool condition) if (is_horizontal()) delta *= -1; + // accelerators + if (wxGetKeyState(WXK_SHIFT) && wxGetKeyState(WXK_CONTROL)) + delta *= 10; + else if (wxGetKeyState(WXK_CONTROL)) + delta *= 5; + if (m_selection == ssLower) { m_lower_value -= delta; correct_lower_value();