mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add paste command (Ctrl-V) in GUIChatConsole
This commit is contained in:
parent
cfba55ba0a
commit
daefd0ab36
3 changed files with 24 additions and 1 deletions
|
@ -407,6 +407,15 @@ void ChatPrompt::input(wchar_t ch)
|
|||
m_nick_completion_end = 0;
|
||||
}
|
||||
|
||||
void ChatPrompt::input(const std::wstring &str)
|
||||
{
|
||||
m_line.insert(m_cursor, str);
|
||||
m_cursor += str.size();
|
||||
clampView();
|
||||
m_nick_completion_start = 0;
|
||||
m_nick_completion_end = 0;
|
||||
}
|
||||
|
||||
std::wstring ChatPrompt::submit()
|
||||
{
|
||||
std::wstring line = m_line;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue