From d9801ae479dfc9aa82f5121b3cbb74f875dd690a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 12 Dec 2008 00:23:45 +0000 Subject: [PATCH] STR 2094: Fixed callback handling for FL_HIDE event for Fl_Input_ and handling of FL_WHEN_ENTER_KEY_ALWAYS. This was a regression introduced with svn -r 6212. History: svn -r 6031: STR #1719: regression introduced in FLTK 1.1 svn -r 6104: Fixed in FLTK 1.1 svn -r 6108: Applied to FLTK 1.3 (okay) svn -r 6212: introduced again by "Merging the UTF8 patch ..." git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index b65223df1..199a594e7 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -809,8 +809,7 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) { minimal_update(mark_, position_); case FL_HIDE: fl_reset_spot(); - if (!readonly() && - (when() & (FL_WHEN_RELEASE | FL_WHEN_NOT_CHANGED))) + if (!readonly() && (when() & FL_WHEN_RELEASE)) maybe_do_callback(); return 1;