From 8b9829b4fd8956023da96dd8435e255ed4c9be76 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Dec 2014 13:38:58 +0300 Subject: add chat command for insert text into input field. New chat command: /addtext TEXT Alias: /textadd TEXT --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f482eeab5..cc4488e51 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -511,6 +511,7 @@ namespace InputAction ITEM_PROTECT, ITEM_UNPROTECT, KICK_PARTY, + ADD_TEXT, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index c32fec039..f03e81559 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4342,6 +4342,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "kickparty|partykick", true}, + {"keyAddText", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::addText, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "addtext|textadd", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-60-g2f50