Removed cog icon from the horizontal slider.

+ Shortcut "Shift+G" works from the Preview canvas now (not just from the focused slider as before)
This commit is contained in:
YuSanka 2020-11-04 16:26:25 +01:00 committed by Oleksandra Yushchenko
parent ece27dcc42
commit ea5fdcd7b1
6 changed files with 33 additions and 0 deletions

View file

@ -557,6 +557,16 @@ void Preview::msw_rescale()
refresh_print();
}
void Preview::jump_layers_slider(wxKeyEvent& evt)
{
#if ENABLE_GCODE_VIEWER
if (m_layers_slider) m_layers_slider->OnChar(evt);
#else
if (m_slider)
m_slider->OnKeyDown(evt);
#endif // ENABLE_GCODE_VIEWER
}
#if ENABLE_GCODE_VIEWER
void Preview::move_layers_slider(wxKeyEvent& evt)
{