From 6c2918a326ce7dcc1a285c48a20d39f0455467a7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 23 May 2014 22:50:59 +0200 Subject: [PATCH] Forbid capslock and numlock from being bound in the menu --- qcsrc/menu/xonotic/keybinder.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcsrc/menu/xonotic/keybinder.c b/qcsrc/menu/xonotic/keybinder.c index d16e8bb26..66c3486a3 100644 --- a/qcsrc/menu/xonotic/keybinder.c +++ b/qcsrc/menu/xonotic/keybinder.c @@ -143,6 +143,13 @@ void XonoticKeyBinder_keyGrabbed(entity me, float key, float ascii) if(key == K_ESCAPE) return; + // forbid these keys from being bound in the menu + if(key == K_CAPSLOCK || key == K_NUMLOCK) + { + KeyBinder_Bind_Change(me, me); + return; + } + func = Xonotic_KeyBinds_Functions[me.selectedItem]; if(func == "") return; -- 2.39.2