DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2094
Version: 1.3-current


IMHO the fallthrough _was_ intended, because a FL_UNFOCUS event must call
the callback, if FL_WHEN_RELEASE is set. Without the fallthrough, this
would never happen.

The (FLTK 1.1) docs [1] clearly state: "FL_WHEN_RELEASE: The callback will
be done when this widget loses the focus, including when the window is
unmapped. ..."

Thus, adding the "return 1;" statement would be wrong, but the code as it
is may be wrong, too. IMHO, the problem is that FL_WHEN_ENTER_KEY_ALWAYS
implicitly sets the FL_WHEN_NOT_CHANGED bit, and this can fire the
callback even if the value has _not_ changed.

I don't know the _correct_ solution, however. We need more investigations
to decide, what the correct behavior would be.
---
[1] http://www.fltk.org/doc-1.1/Fl_Input.html#Fl_Input.when


Link: http://www.fltk.org/str.php?L2094
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to