From 47b344056182a094df2662329719d0a59263f328 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 29 Jul 2019 15:44:00 +0200 Subject: [PATCH] Fix of #2401 --- src/slic3r/GUI/GLCanvas3D.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 6c9e79dbd9..accca2bbc0 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2377,12 +2377,9 @@ void GLCanvas3D::on_char(wxKeyEvent& evt) post_event(SimpleEvent(EVT_GLCANVAS_UNDO)); break; -#ifdef __APPLE__ - case WXK_BACK: // the low cost Apple solutions are not equipped with a Delete key, use Backspace instead. -#else /* __APPLE__ */ + case WXK_BACK: case WXK_DELETE: -#endif /* __APPLE__ */ - post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL)); break; + post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE_ALL)); break; default: evt.Skip(); } } else if (evt.HasModifiers()) { @@ -2390,11 +2387,8 @@ void GLCanvas3D::on_char(wxKeyEvent& evt) } else { switch (keyCode) { -#ifdef __APPLE__ - case WXK_BACK: // the low cost Apple solutions are not equipped with a Delete key, use Backspace instead. -#else /* __APPLE__ */ + case WXK_BACK: case WXK_DELETE: -#endif /* __APPLE__ */ post_event(SimpleEvent(EVT_GLTOOLBAR_DELETE)); break; case WXK_ESCAPE: { deselect_all(); break; }