From 0e6d6a9695c5dc9b4fca496b3fe3649515d4314b Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 24 Jul 2012 18:21:02 +0200 Subject: [PATCH] Force sane TAB key order on buttons in GridSizer. --- lib/Slic3r/GUI/Plater.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index eab3731df..48f9859dc 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -188,6 +188,9 @@ sub new { $buttons->Add($self->{"btn_remove"}, 0, wxEXPAND | wxALL); $buttons->Add($self->{"btn_reset"}, 0, wxEXPAND | wxALL); $buttons->Add($self->{"btn_export_stl"}, 0, wxEXPAND | wxALL); + # force sane tab order + my @taborder = qw/btn_load btn_arrange btn_export_gcode btn_remove btn_reset btn_export_stl/; + $self->{$taborder[$_]}->MoveAfterInTabOrder($self->{$taborder[$_-1]}) for (1..$#taborder); my $list_sizer = Wx::BoxSizer->new(wxHORIZONTAL); $list_sizer->Add($self->{list}, 1, wxEXPAND | wxALL, 0);