From 081dcc021b2029ff825ac1995b9f5c198146f74f Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 12 Oct 2024 23:21:05 +0200 Subject: [PATCH] fix tty converting everything to lowercase --- src/console.c | 1 - src/m_textinput.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/console.c b/src/console.c index dbeb2b42b..9781078fa 100644 --- a/src/console.c +++ b/src/console.c @@ -898,7 +898,6 @@ boolean CON_Responder(event_t *ev) // show all cvars/commands that match what we have inputted if (key == KEY_TAB) { - if (!completion[0]) { if (!input.length || input.length >= 40 || strchr(input.buffer, ' ')) diff --git a/src/m_textinput.c b/src/m_textinput.c index 8b608cc9a..a73511f77 100644 --- a/src/m_textinput.c +++ b/src/m_textinput.c @@ -295,10 +295,6 @@ boolean M_TextInputHandle(textinput_t *input, INT32 key) if (key < 32 || key > 127) return false; - // add key to cmd line here - if (key >= 'A' && key <= 'Z' && !(shiftdown ^ capslock)) //this is only really necessary for dedicated servers - key = key + 'a' - 'A'; - if (input->select != input->cursor) M_TextInputDelSelection(input); M_TextInputAddChar(input, key);