From 3f0d5f1f055e8c77d25fef2388526d4a6a5c270e Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 22 Jun 2021 14:55:41 +0200 Subject: [PATCH] fix altgr+number wrongly switch tab. --- src/slic3r/GUI/Field.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index e54519c70..b0177cd0d 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -118,7 +118,7 @@ void Field::PostInitialize() // So, like a workaround check wxEVT_KEY_UP event for the Filed and switch between tabs if Ctrl+(1-6) was pressed if (getWindow()) getWindow()->Bind(wxEVT_KEY_UP, [](wxKeyEvent& evt) { - if ((evt.GetModifiers() & wxMOD_CONTROL) != 0) { + if ((evt.GetModifiers() & wxMOD_CONTROL) != 0 && (evt.GetModifiers() & wxMOD_ALT == 0)) { MainFrame::ETabType tab_id = MainFrame::ETabType::Any; switch (evt.GetKeyCode()) { case '1': { tab_id = MainFrame::ETabType::Plater3D; break; }