From 192d118c8570ccb31ec8f436ff1900fdc3512bad Mon Sep 17 00:00:00 2001 From: Andrii Date: Sun, 17 May 2020 02:26:35 +0300 Subject: [PATCH] add binding for teleFindEmpty button --- src/game/editor/popups.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp index 6a94d8426..b76251b31 100644 --- a/src/game/editor/popups.cpp +++ b/src/game/editor/popups.cpp @@ -1445,7 +1445,8 @@ int CEditor::PopupTele(CEditor *pEditor, CUIRect View, void *pContext) Button.VSplitRight(2.f, &Button, 0); static int emptySlotPid = 0; - if (pEditor->DoButton_Editor(&emptySlotPid, "F", 0, &FindEmptySlot, 0, "Find empty slot")) + if (pEditor->DoButton_Editor(&emptySlotPid, "F", 0, &FindEmptySlot, 0, "Find empty slot") + || pEditor->Input()->KeyPress(KEY_F)) { int number = -1; for(int i = 1; i <= 255; i++)