Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2018-07-23 12:33:13 +0300
committerYuSanka <yusanka@gmail.com>2018-07-23 12:33:13 +0300
commit40b55a3818fa52158616944daaa1d0e04c786f40 (patch)
tree2d8db2b0062d8765e5774c550d424979b05d3cd9 /lib/Slic3r/GUI
parentee4f2cf549cc6e32b3b4d9ef7bf7e9f9d055f910 (diff)
Allow delete button in object list
Diffstat (limited to 'lib/Slic3r/GUI')
-rw-r--r--lib/Slic3r/GUI/Plater.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm
index 4a56ce632..44b5d94a9 100644
--- a/lib/Slic3r/GUI/Plater.pm
+++ b/lib/Slic3r/GUI/Plater.pm
@@ -310,6 +310,9 @@ sub new {
my ($list, $event) = @_;
if ($event->GetKeyCode == WXK_TAB) {
$list->Navigate($event->ShiftDown ? &Wx::wxNavigateBackward : &Wx::wxNavigateForward);
+ } elsif ($event->GetKeyCode == WXK_DELETE ||
+ ($event->GetKeyCode == WXK_BACK && &Wx::wxMAC) ) {
+ $self->remove;
} else {
$event->Skip;
}