summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
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,
"",