From 8770bdc69426a9fc03998a92498a85bb2f64db81 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 30 Jan 2019 21:47:05 +0300 Subject: [PATCH] keys: allow autorepeat for menu and console for any keys --- engine/client/keys.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/keys.c b/engine/client/keys.c index bc7fccf7..66f0e6c0 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -527,8 +527,11 @@ Key_IsAllowedAutoRepeat List of keys that allows auto-repeat =================== */ -qboolean Key_IsAllowedAutoRepeat( int key ) +static qboolean Key_IsAllowedAutoRepeat( int key ) { + if( cls.key_dest != key_game ) + return true; + switch( key ) { case K_BACKSPACE: