CON_Responder: *also* use CON_ShiftChar directly rather than have two different implementations that could desync

This commit is contained in:
toaster 2023-05-19 17:42:16 +01:00
parent 0845cf0775
commit 8e4e2eb0a9

View file

@ -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)