From dc2edd69440fcc2470a45562149166695d4edbcc Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 14 Apr 2023 00:11:58 +0300 Subject: Raygui wrapper lib. --- include/raygui.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/raygui.h') diff --git a/include/raygui.h b/include/raygui.h index 38440de..73f9e0d 100644 --- a/include/raygui.h +++ b/include/raygui.h @@ -2049,7 +2049,8 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) // Delete text if (keyCount > 0) { - if (IsKeyPressed(KEY_BACKSPACE)) + // if (IsKeyPressed(KEY_BACKSPACE)) + if ( GetKeyPressed() == KEY_BACKSPACE ) { while ((keyCount > 0) && ((text[--keyCount] & 0xc0) == 0x80)); text[keyCount] = '\0'; @@ -2343,7 +2344,8 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode) // Delete characters if (textLength > 0) { - if (IsKeyPressed(KEY_BACKSPACE)) + // if (IsKeyPressed(KEY_BACKSPACE)) + if ( GetKeyPressed() == KEY_BACKSPACE ) { if ((unsigned char)text[textLength - 1] < 127) { -- cgit v1.2.3