From: terencehill Date: Sat, 9 Jan 2021 14:50:44 +0000 (+0100) Subject: Menu: allow editing a user defined key bind with right mouse click X-Git-Tag: xonotic-v0.8.5~602 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=087e3fcfc529ca2b4b9a3a1707021dfeceb2b39b;p=xonotic%2Fxonotic-data.pk3dir.git Menu: allow editing a user defined key bind with right mouse click --- diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index f9b2be71c..a0265c4e4 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -391,6 +391,9 @@ float XonoticKeyBinder_keyDown(entity me, int key, bool ascii, float shift) case K_BACKSPACE: KeyBinder_Bind_Clear(me, me); break; + case K_MOUSE2: + KeyBinder_Bind_Edit(me, me); + break; default: r = SUPER(XonoticKeyBinder).keyDown(me, key, ascii, shift); break;