summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions/chat.cpp7
-rw-r--r--src/actions/chat.h1
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h5
4 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index f59bc9a1b..336b03065 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -492,4 +492,11 @@ impHandler0(chatTradeTab)
return true;
}
+impHandler0(chatLangTab)
+{
+ if (chatWindow)
+ chatWindow->selectTabByType(ChatTabType::LANG);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/chat.h b/src/actions/chat.h
index dafc853aa..980ca0762 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -53,6 +53,7 @@ namespace Actions
decHandler(chatDebugTab);
decHandler(chatBattleTab);
decHandler(chatTradeTab);
+ decHandler(chatLangTab);
} // namespace Actions
#undef decHandler
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 9d6f5eb83..e587bf648 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -530,6 +530,7 @@ namespace InputAction
CHAT_DEBUG_TAB,
CHAT_BATTLE_TAB,
CHAT_TRADE_TAB,
+ CHAT_LANG_TAB,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 1af7f387e..d4e04b9eb 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3944,6 +3944,11 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"tradetab|tradechattab",
false},
+ {"keyLangTab",
+ defaultAction(&Actions::chatLangTab),
+ InputCondition::INGAME,
+ "langtab|langchattab",
+ false},
};
#undef defaultAction