mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-28 17:17:29 +08:00
DoubleSlider::Control -> Shift and Ctrl used as accelerators for moving thumbs with arrows key and mouse wheel
This commit is contained in:
parent
100484dabe
commit
e77fa3512a
@ -1345,6 +1345,12 @@ void Control::move_current_thumb(const bool condition)
|
|||||||
if (is_horizontal())
|
if (is_horizontal())
|
||||||
delta *= -1;
|
delta *= -1;
|
||||||
|
|
||||||
|
// accelerators
|
||||||
|
if (wxGetKeyState(WXK_SHIFT) && wxGetKeyState(WXK_CONTROL))
|
||||||
|
delta *= 10;
|
||||||
|
else if (wxGetKeyState(WXK_CONTROL))
|
||||||
|
delta *= 5;
|
||||||
|
|
||||||
if (m_selection == ssLower) {
|
if (m_selection == ssLower) {
|
||||||
m_lower_value -= delta;
|
m_lower_value -= delta;
|
||||||
correct_lower_value();
|
correct_lower_value();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user