]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/keybinder.qc
Add "Quit campaign" / "Quit current game" button to the Quit dialogue, bind f11 to...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / keybinder.qc
index f9b2be71cf770feb9efedcdc0be4de699f3d94aa..4eff8b2f73ee1719f8f0da7bb2358313d152a331 100644 (file)
@@ -106,8 +106,7 @@ void KeyBinds_BuildList()
        KEYBIND_DEF("toggleconsole"                         , _("enter console"));
                string console_shortcut = strcat(translate_key("SHIFT"), "+", translate_key("ESCAPE"));
                KEYBIND_SPECIAL_DEF(console_shortcut, _("enter console"));
-       KEYBIND_DEF("disconnect"                            , _("disconnect"));
-       KEYBIND_DEF("menu_showquitdialog"                   , _("quit"));
+       KEYBIND_DEF("menu_showquitdialog"                   , _("disconnect / quit"));
        KEYBIND_EMPTY_LINE();
 
        KEYBIND_HEADER(_("Teamplay"));
@@ -391,6 +390,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;