diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 11 | ||||
-rw-r--r-- | src/input/pages/chat.cpp | 6 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 15af94ec7..36adc4759 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -349,6 +349,7 @@ namespace InputAction WHO, WHISPER, QUERY, + CLEAR_CHAT_TAB, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index fc2b601b6..b5498427d 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2910,7 +2910,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "q|query", - true} + true}, + {"keyClearChatTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::clearChatTab, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "clear", + false} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp index d61f7855a..234892c77 100644 --- a/src/input/pages/chat.cpp +++ b/src/input/pages/chat.cpp @@ -62,6 +62,12 @@ SetupActionData setupActionDataChat[] = }, { // TRANSLATORS: input action name + N_("Clear current chat tab"), + InputAction::CLEAR_CHAT_TAB, + "", + }, + { + // TRANSLATORS: input action name N_("Close current Chat Tab"), InputAction::CLOSE_CHAT_TAB, "", |