DoubleSlider::Control -> Shift and Ctrl used as accelerators for moving thumbs with arrows key and mouse wheel

This commit is contained in:
enricoturri1966
2020-05-27 16:03:40 +02:00
parent 8cbb040b20
commit 3bf4d3eb45

View File

@@ -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();