Add chat input history navigation with Up/Down arrows

Up arrow in the chat input field recalls previously sent messages.
Down arrow moves forward through history; going past the end clears input.
History stores up to 50 unique entries and resets position after each send.
This commit is contained in:
Kelsi 2026-03-11 23:06:24 -07:00
parent e002266607
commit 682cb8d44b
2 changed files with 55 additions and 2 deletions

View file

@ -50,6 +50,10 @@ private:
int lastChatType = 0; // Track chat type changes
bool chatInputMoveCursorToEnd = false;
// Chat sent-message history (Up/Down arrow recall)
std::vector<std::string> chatSentHistory_;
int chatHistoryIdx_ = -1; // -1 = not browsing history
// Chat tabs
int activeChatTab_ = 0;
struct ChatTab {