From dded1355609c8f23281f78ec719b09b1693ea717 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 14:50:14 +0300 Subject: Move chat command /closeall into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/chat.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 2231a89dd..5cea51f31 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -341,6 +341,7 @@ namespace InputAction WINDOW_ABOUT, WINDOW_UPDATER, TARGET_CLOSEST_MONSTER, + CLOSE_ALL_CHAT_TABS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 65c145dbd..35fd37d57 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2837,6 +2837,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::GAME | InputCondition::NOTARGET | InputCondition::VALIDSPEED, "", + false}, + {"keyChatCloseAllTabs", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::closeAllChatTabs, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "closeall", false} }; diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp index 71922103a..113efa3a5 100644 --- a/src/input/pages/chat.cpp +++ b/src/input/pages/chat.cpp @@ -66,6 +66,12 @@ SetupActionData setupActionDataChat[] = InputAction::CLOSE_CHAT_TAB, "", }, + { + // TRANSLATORS: input action name + N_("Close all chat tabs"), + InputAction::CLOSE_ALL_CHAT_TABS, + "", + }, { // TRANSLATORS: input action name N_("Previous chat line"), -- cgit v1.2.3-70-g09d2