mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:09:00 +08:00
Follow up of e77fa3512ac0c9d697b9ad9620a5e955cf35209e -> changed logic for DoubleSlider::Control accelerators
This commit is contained in:
parent
edb643e178
commit
af3765c04c
@ -1346,10 +1346,13 @@ void Control::move_current_thumb(const bool condition)
|
|||||||
delta *= -1;
|
delta *= -1;
|
||||||
|
|
||||||
// accelerators
|
// accelerators
|
||||||
if (wxGetKeyState(WXK_SHIFT) && wxGetKeyState(WXK_CONTROL))
|
int accelerator = 0;
|
||||||
delta *= 10;
|
if (wxGetKeyState(WXK_SHIFT))
|
||||||
else if (wxGetKeyState(WXK_CONTROL))
|
accelerator += 5;
|
||||||
delta *= 5;
|
if (wxGetKeyState(WXK_CONTROL))
|
||||||
|
accelerator += 5;
|
||||||
|
if (accelerator > 0)
|
||||||
|
delta *= accelerator;
|
||||||
|
|
||||||
if (m_selection == ssLower) {
|
if (m_selection == ssLower) {
|
||||||
m_lower_value -= delta;
|
m_lower_value -= delta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user