diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/chat.cpp | 7 | ||||
-rw-r--r-- | src/actions/chat.h | 1 | ||||
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 9 |
4 files changed, 18 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 8c5a8ebb4..f6135c674 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -450,4 +450,11 @@ impHandler(kickParty) return true; } +impHandler(addText) +{ + if (chatWindow) + chatWindow->addInputText(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/chat.h b/src/actions/chat.h index 3171d4118..12fa35963 100644 --- a/src/actions/chat.h +++ b/src/actions/chat.h @@ -47,6 +47,7 @@ namespace Actions decHandler(me); decHandler(toggle); decHandler(kickParty); + decHandler(addText); } // namespace Actions #undef decHandler 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 |