Changed: Add right click copy-to-clipboard action to chat

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-11-18 21:33:05 +02:00
parent e5b7064a4d
commit 2877ece3c6

View file

@ -402,6 +402,10 @@ CViewBase *CChatTextManager::createMsgTextComplex(const ucstring &msg, NLMISC::C
para->setSizeRef("w");
para->setResizeFromChildH(true);
// use right click because left click might be used to activate chat window
para->setRightClickHandler("copy_to_clipboard");
para->setRightClickHandlerParams(msg.toUtf8());
if (plaintext)
{
CViewBase *vt = createMsgTextSimple(msg, col, justified, NULL);