From f6cb5519a2cc4452055ff0bfb6f38990bc3e9e65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 Jun 2017 20:37:18 +0300 Subject: Allow open server info window from game. --- src/input/inputactionmap.h | 6 ++++++ src/input/pages/windows.cpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/input') diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index d593011b0..0de10a4e4 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -5690,6 +5690,12 @@ static const InputActionData inputActionData "ipcheck|checkip", UseArgs_true, Protected_true}, + {"keyWindowServerInfo", + defaultAction(&Actions::serverInfoWindowShow), + InputCondition::GAME | InputCondition::NOTARGET, + "serverinfo|infoserver", + UseArgs_false, + Protected_false}, }; #undef defaultAction diff --git a/src/input/pages/windows.cpp b/src/input/pages/windows.cpp index b9d64acbc..ca232f914 100644 --- a/src/input/pages/windows.cpp +++ b/src/input/pages/windows.cpp @@ -65,6 +65,12 @@ SetupActionData setupActionDataWindows[] = InputAction::WINDOW_HELP, "", }, + { + // TRANSLATORS: input action name + N_("Server Info Window"), + InputAction::WINDOW_SERVER_INFO, + "", + }, { // TRANSLATORS: input action name N_("Status Window"), -- cgit v1.2.3-60-g2f50