From: James O'Neill Date: Sun, 21 Apr 2024 15:28:29 +0000 (+0900) Subject: Accept "ctrl" + "=" for increasing console text size (#167) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49e68945aaf75a9ead362b814b6452783c414a3e;p=xonotic%2Fdarkplaces.git 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 --- 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);