From 49e68945aaf75a9ead362b814b6452783c414a3e Mon Sep 17 00:00:00 2001 From: James O'Neill Date: Mon, 22 Apr 2024 00:28:29 +0900 Subject: [PATCH] Accept "ctrl" + "=" for increasing console text size (#167) Can't use the "=+" key to increase the console text size because the code only wants "+"; ctrl+shift+= also does not work. Keypad + works. This patch makes it accept the = key as well as +. Fixes #110 . See https://github.com/DarkPlacesEngine/darkplaces/pull/167 Signed-off-by: bones_was_here --- keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keys.c b/keys.c index a3a6d926..0762490e 100644 --- a/keys.c +++ b/keys.c @@ -1265,7 +1265,7 @@ static void Key_Console(cmd_state_t *cmd, int key, int unicode) if (keydown[K_CTRL]) { // text zoom in - if ((key == '+' || key == K_KP_PLUS) && KM_CTRL) + if ((key == '=' || key == '+' || key == K_KP_PLUS) && KM_CTRL) { if (con_textsize.integer < 128) Cvar_SetValueQuick(&con_textsize, con_textsize.integer + 1); -- 2.39.2