From f008fd447c4299bc90289d92e06c3779ff8aac82 Mon Sep 17 00:00:00 2001
From: Marco Hladik <marco@icculus.org>
Date: Wed, 20 Feb 2019 16:21:25 +0100
Subject: [PATCH] w_textbox: Prevent the use of RETURN/ENTER; thanks Xylemon

---
 Source/menu-fn/w_textbox.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Source/menu-fn/w_textbox.cpp b/Source/menu-fn/w_textbox.cpp
index 6ffe1aee..9190139f 100644
--- a/Source/menu-fn/w_textbox.cpp
+++ b/Source/menu-fn/w_textbox.cpp
@@ -70,6 +70,8 @@ void CTextBox::Input(float type, float x, float y, float devid)
 				m_text = substring(m_text, 0, strlen(m_text) - 1);
 			}
 			break;
+		case K_ENTER:
+			break;
 		default:
 			if (m_flags & TEXTBOX_FOCUS) {
 				m_text = sprintf("%s%s", m_text, chr2str(y));