Follow up of e77fa3512a
-> changed logic for DoubleSlider::Control accelerators
This commit is contained in:
parent
edb643e178
commit
af3765c04c
1 changed files with 7 additions and 4 deletions
|
@ -1346,10 +1346,13 @@ void Control::move_current_thumb(const bool condition)
|
|||
delta *= -1;
|
||||
|
||||
// accelerators
|
||||
if (wxGetKeyState(WXK_SHIFT) && wxGetKeyState(WXK_CONTROL))
|
||||
delta *= 10;
|
||||
else if (wxGetKeyState(WXK_CONTROL))
|
||||
delta *= 5;
|
||||
int accelerator = 0;
|
||||
if (wxGetKeyState(WXK_SHIFT))
|
||||
accelerator += 5;
|
||||
if (wxGetKeyState(WXK_CONTROL))
|
||||
accelerator += 5;
|
||||
if (accelerator > 0)
|
||||
delta *= accelerator;
|
||||
|
||||
if (m_selection == ssLower) {
|
||||
m_lower_value -= delta;
|
||||
|
|
Loading…
Reference in a new issue