diff --git a/nuklear.h b/nuklear.h index a1fa9d1c..1c4417a7 100644 --- a/nuklear.h +++ b/nuklear.h @@ -29073,6 +29073,7 @@ nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant win->property.name = hash; win->property.select_start = *select_begin; win->property.select_end = *select_end; + win->edit.active = nk_true; if (*state == NK_PROPERTY_DRAG) { ctx->input.mouse.grab = nk_true; ctx->input.mouse.grabbed = nk_true; @@ -29088,6 +29089,7 @@ nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant win->property.select_start = 0; win->property.select_end = 0; win->property.active = 0; + win->edit.active = nk_false; } } NK_API void @@ -30729,6 +30731,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args) /// - [y]: Minor version with non-breaking API and library changes /// - [z]: Patch version with no direct changes to the API /// +/// - 2025/11/08 (4.13.0) - Fix: nk_property not updating 'win->edit.active' /// - 2025/10/08 (4.12.8) - Fix nk_widget_text to use NK_TEXT_ALIGN_LEFT by default, /// instead of silently failing when no x-axis alignment is provided, /// and refactor this function to keep the code style consistent diff --git a/src/CHANGELOG b/src/CHANGELOG index fa81dc46..feed1066 100644 --- a/src/CHANGELOG +++ b/src/CHANGELOG @@ -7,6 +7,7 @@ /// - [y]: Minor version with non-breaking API and library changes /// - [z]: Patch version with no direct changes to the API /// +/// - 2025/11/08 (4.13.0) - Fix: nk_property not updating 'win->edit.active' /// - 2025/10/08 (4.12.8) - Fix nk_widget_text to use NK_TEXT_ALIGN_LEFT by default, /// instead of silently failing when no x-axis alignment is provided, /// and refactor this function to keep the code style consistent diff --git a/src/nuklear_property.c b/src/nuklear_property.c index 68b47ba7..668b78c8 100644 --- a/src/nuklear_property.c +++ b/src/nuklear_property.c @@ -405,6 +405,7 @@ nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant win->property.name = hash; win->property.select_start = *select_begin; win->property.select_end = *select_end; + win->edit.active = nk_true; if (*state == NK_PROPERTY_DRAG) { ctx->input.mouse.grab = nk_true; ctx->input.mouse.grabbed = nk_true; @@ -420,6 +421,7 @@ nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant win->property.select_start = 0; win->property.select_end = 0; win->property.active = 0; + win->edit.active = nk_false; } } NK_API void