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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Slic3r/GUI/Plater/2DToolpaths.pm')
-rw-r--r--lib/Slic3r/GUI/Plater/2DToolpaths.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Slic3r/GUI/Plater/2DToolpaths.pm b/lib/Slic3r/GUI/Plater/2DToolpaths.pm
index e153e4db2..d16395a55 100644
--- a/lib/Slic3r/GUI/Plater/2DToolpaths.pm
+++ b/lib/Slic3r/GUI/Plater/2DToolpaths.pm
@@ -53,17 +53,17 @@ sub new {
EVT_KEY_DOWN($canvas, sub {
my ($s, $event) = @_;
my $key = $event->GetKeyCode;
- if ($key == 85 || $key == WXK_LEFT) {
+ if ($key == ord('D') || $key == WXK_LEFT) {
# Keys: 'D' or WXK_LEFT
- $slider->SetValue($slider->GetValue + 1);
+ $slider->SetValue($slider->GetValue - 1);
$self->set_z($self->{layers_z}[$slider->GetValue]);
- } elsif ($key == 68 || $key == WXK_RIGHT) {
+ } elsif ($key == ord('U') || $key == WXK_RIGHT) {
# Keys: 'U' or WXK_RIGHT
- $slider->SetValue($slider->GetValue - 1);
+ $slider->SetValue($slider->GetValue + 1);
$self->set_z($self->{layers_z}[$slider->GetValue]);
- } elsif ($key >= 49 && $key <= 55) {
+ } elsif ($key >= ord('1') && $key <= ord('3')) {
# Keys: '1' to '3'
- $canvas->set_simulation_mode($key - 49);
+ $canvas->set_simulation_mode($key - ord('1'));
}
});