Add Ctrl+V paste support to chatbox - #5296
Conversation
Implement CTRL + V functionality to paste clipboard text into input, ensuring character limit is respected.
|
There's already #4976 |
Oh, i haven't seen that before. i don't know what to do now, i will keep the pull request open anyway |
|
It would also be interesting to add a function to enable/disable it within Because some server owners weren't aware of its usefulness, it is initially disabled until |
Anyway, the player can easily press F8 and type |
No. I use |
Summary
Added
Ctrl+Vshortcut toCChat::CharacterKeyHandler. This allows players to paste text directly into the chat input box from the system clipboard.Motivation
Players can now paste copied text, or long commands directly into the chat box without needing to type them out manually.
Test plan
Ctrl+V. confirmed text pasted as expected.\r\n. confirmed newlines were stripped cleanly.m_iCharacterLimit. confirmed text was safely truncated without buffer overflow or UI bugs.Checklist