From 8e4e2eb0a9bd3666e4154ad0a9cb87905be8159f Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 19 May 2023 17:42:16 +0100 Subject: [PATCH] CON_Responder: *also* use CON_ShiftChar directly rather than have two different implementations that could desync --- src/console.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/console.c b/src/console.c index 6571b9f2a..dbfbf5c31 100644 --- a/src/console.c +++ b/src/console.c @@ -1309,17 +1309,7 @@ boolean CON_Responder(event_t *ev) else if (key == KEY_KPADSLASH) key = '/'; - // same capslock code as hu_stuff.c's HU_responder. Check there for details. - if ((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z')) - { - if (shiftdown ^ capslock) - key = shiftxform[key]; - } - else - { - if (shiftdown) - key = shiftxform[key]; - } + key = CON_ShiftChar(key); // enter a char into the command prompt if (key < 32 || key > 127)