From 0bda5a9018bb8a8b0511e86d6b0790a5b5127e42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 19:54:53 +0300 Subject: Move chat command /ipctoggle into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 11 ++++++++++- src/input/pages/other.cpp | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index d67e60d2d..365f11571 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -344,6 +344,7 @@ namespace InputAction CLOSE_ALL_CHAT_TABS, IGNORE_ALL_WHISPERS, CHAT_ANNOUNCE, + IPC_TOGGLE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 37810b5d7..b1807760d 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2865,7 +2865,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "announce", - true} + true}, + {"keyIpcToggle", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::ipcToggle, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "ipctoggle", + false} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 65ee2af90..70b6b95d5 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -189,6 +189,12 @@ SetupActionData setupActionDataOther[] = InputAction::CAMERA, "", }, + { + // TRANSLATORS: input action name + N_("Toggle ipc mode"), + InputAction::IPC_TOGGLE, + "", + }, { // TRANSLATORS: input action name N_("Show onscreen keyboard"), -- cgit v1.2.3-70-g09d2