From acd75db184a16283fa3de257272ef0482f0c334c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 30 Jan 2008 20:18:36 +0100 Subject: cancel Fl_Search_Chooser on Esc --- src/Fl_Search_Chooser.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_Search_Chooser.cxx b/src/Fl_Search_Chooser.cxx index f724354..b5e535f 100644 --- a/src/Fl_Search_Chooser.cxx +++ b/src/Fl_Search_Chooser.cxx @@ -64,6 +64,7 @@ static void cancel_cb(Fl_Input* in, void*c) { } Fl_Search_Chooser::Fl_Search_Chooser(const char *title) : Fl_Window(320, 320, title?title:"Choose") { + callback((Fl_Callback*) cancel_cb, this); visible_focus = Fl::visible_focus(); Fl::visible_focus(0); Fl_Group *g = new Fl_Group(10, 10, w() - 10, h() - 10); -- cgit v1.2.3