From b5a1da961200e870a28f09b2fba4197e73c9935d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 29 Aug 2023 22:50:07 +0200 Subject: FLUID: minor fixes --- FL/Enumerations.H | 4 +++- FL/names.h | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 178c561c3..5b7cb493a 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -455,7 +455,9 @@ enum Fl_Callback_Reason { FL_REASON_CHANGED, ///< the value of the widget was modified FL_REASON_GOT_FOCUS, ///< a widget received focus FL_REASON_LOST_FOCUS, ///< a widget lost focus - FL_REASON_RELEASED ///< the mouse button was released + FL_REASON_RELEASED, ///< the mouse button was released + FL_REASON_ENTER_KEY, ///< user finished input pressing Enter + FL_REASON_USER = 32 ///< user defined callback reasons }; /**@}*/ // group: Callback Reasons diff --git a/FL/names.h b/FL/names.h index 87bb5178e..15a491f84 100644 --- a/FL/names.h +++ b/FL/names.h @@ -134,6 +134,11 @@ const char * const fl_callback_reason_names[] = "FL_REASON_GOT_FOCUS", "FL_REASON_LOST_FOCUS", "FL_REASON_RELEASED", + "FL_REASON_ENTER_KEY", + NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, + "FL_REASON_USER", "FL_REASON_USER+1", "FL_REASON_USER+2", "FL_REASON_USER+3", }; /** @} */ -- cgit v1.2.3