From cb0488df122938803917567df424cc844dcc1e33 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 20 Dec 2018 22:30:42 +0100 Subject: [PATCH] Tab key to switch between the 3D view / path preview. --- src/slic3r/GUI/Plater.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index db19180b4..11894adf8 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1117,6 +1117,9 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame) #if ENABLE_REMOVE_TABS_FROM_PLATER view3D = new View3D(q, &model, config, &background_process); preview = new Preview(q, config, &background_process, &gcode_preview_data, [this](){ schedule_background_process(); }); + // Let the Tab key switch between the 3D view and the layer preview. + view3D->Bind(wxEVT_NAVIGATION_KEY, [this](wxNavigationKeyEvent &evt) { if (evt.IsFromTab()) this->q->select_view_3D("Preview"); }); + preview->Bind(wxEVT_NAVIGATION_KEY, [this](wxNavigationKeyEvent &evt) { if (evt.IsFromTab()) this->q->select_view_3D("3D"); }); panels.push_back(view3D); panels.push_back(preview);