SDL_ttf: Insert a newline into the editbox when enter is pressed.

From a01f973e6102238cc8267e1421c9978257975e3f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 6 Oct 2024 23:39:40 -0700
Subject: [PATCH] Insert a newline into the editbox when enter is pressed.

---
 examples/editbox.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/editbox.c b/examples/editbox.c
index 112c6541..d9e807f7 100644
--- a/examples/editbox.c
+++ b/examples/editbox.c
@@ -954,6 +954,10 @@ bool EditBox_HandleEvent(EditBox *edit, SDL_Event *event)
             }
             break;
 
+        case SDLK_RETURN:
+            EditBox_Insert(edit, "\n");
+            break;
+
         case SDLK_ESCAPE:
             EditBox_SetFocus(edit, false);
             break;