mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
e002266607
commit
682cb8d44b
2 changed files with 55 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue