Skip to content

Commit c7a3066

Browse files
committed
fix: nk_input_want_text_keyboard
1 parent 58d5e79 commit c7a3066

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nuklear.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30786,7 +30786,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
3078630786
/// - 2025/04/06 (4.12.7) - Fix text input navigation and mouse scrolling
3078730787
/// - 2025/03/29 (4.12.6) - Fix unitialized data in nk_input_char
3078830788
/// - 2025/03/05 (4.12.5) - Fix scrolling knob also scrolling parent window, remove dead code
30789-
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of char[1]
30789+
/// - 2024/12/11 (4.12.4) - Fix array subscript [0, 0] is outside array bounds of char[1]
3079030790
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
3079130791
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
3079230792
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20

src/nuklear_input.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,9 @@ nk_input_is_key_down(const struct nk_input *i, enum nk_keys key)
294294
NK_API nk_bool
295295
nk_input_want_text_keyboard(struct nk_input* i)
296296
{
297+
nk_bool ret;
297298
NK_ASSERT(i);
298-
nk_bool ret = !i->keyboard.text_want;
299+
ret = !i->keyboard.text_want;
299300
i->keyboard.text_want = nk_true;
300301
return ret;
301302
}

0 commit comments

Comments
 (0)