summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 14:50:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 14:50:14 +0300
commitdded1355609c8f23281f78ec719b09b1693ea717 (patch)
tree00238316177f9099d2e58cd639269a269a2dd0d0 /src/input
parent44df89ce3e77f4f5e93555260f3eabab7621f77d (diff)
downloadmanaplus-dded1355609c8f23281f78ec719b09b1693ea717.tar.gz
manaplus-dded1355609c8f23281f78ec719b09b1693ea717.tar.bz2
manaplus-dded1355609c8f23281f78ec719b09b1693ea717.tar.xz
manaplus-dded1355609c8f23281f78ec719b09b1693ea717.zip
Move chat command /closeall into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
-rw-r--r--src/input/pages/chat.cpp6
3 files changed, 16 insertions, 0 deletions
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
@@ -68,6 +68,12 @@ SetupActionData setupActionDataChat[] =
},
{
// TRANSLATORS: input action name
+ N_("Close all chat tabs"),
+ InputAction::CLOSE_ALL_CHAT_TABS,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Previous chat line"),
InputAction::CHAT_PREV_HISTORY,
"",