From 9d146031be5f233adf115c69bf87994e577ff318 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 29 Oct 2012 06:31:24 +0000 Subject: [PATCH] do callback on enter for strings --- Fltk/onelabWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index 62863ca0d8..184b5396ba 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -1034,7 +1034,7 @@ Fl_Widget *onelabWindow::_addParameterWidget(onelab::string &p, Fl_Tree_Item *n, but->menubutton()->copy(&menu[0]); but->value(p.getValue().c_str()); but->callback(onelab_string_input_choice_cb, (void*)n); - but->when(FL_WHEN_RELEASE | FL_WHEN_ENTER_KEY); + but->input()->when(FL_WHEN_ENTER_KEY); but->align(FL_ALIGN_RIGHT); if(highlight) but->input()->color(c); return but; -- GitLab