summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/web/text/text_input_box.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/text/text_input_box.c b/examples/web/text/text_input_box.c
index f7da329..5ab1457 100644
--- a/examples/web/text/text_input_box.c
+++ b/examples/web/text/text_input_box.c
@@ -80,7 +80,7 @@ void UpdateDrawFrame(void)
if (mouseOnText)
{
- int key = GetKeyPressed();
+ int key = GetCharPressed();
// NOTE: Only allow keys in range [32..125]
if ((key >= 32) && (key <= 125) && (letterCount < MAX_INPUT_CHARS))
@@ -137,7 +137,7 @@ void UpdateDrawFrame(void)
bool IsAnyKeyPressed()
{
bool keyPressed = false;
- int key = GetKeyPressed();
+ int key = GetCharPressed();
if ((key >= 32) && (key <= 126)) keyPressed = true;