From a49e786b044041739a53ad5fdf2ede99de0b6363 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 19 Apr 2014 18:29:40 +0200 Subject: [PATCH] Handle EVT_TEXT on wxSpinCtrl too --- lib/Slic3r/GUI/OptionsGroup.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index 8e718e1af..9e7b4cfc8 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -197,6 +197,7 @@ sub _build_field { $field = Wx::SpinCtrl->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $style, $opt->{min} || 0, $opt->{max} || 2147483647, $opt->{default}); $self->_setters->{$opt_key} = sub { $field->SetValue($_[0]) }; EVT_SPINCTRL ($self->parent, $field, $on_change); + EVT_TEXT ($self->parent, $field, $on_change); EVT_KILL_FOCUS($field, $on_kill_focus); } elsif ($opt->{values}) { $field = Wx::ComboBox->new($self->parent, -1, $opt->{default}, wxDefaultPosition, $size, $opt->{labels} || $opt->{values});