Changed: Add right click copy-to-clipboard action to chat
--HG-- branch : develop
This commit is contained in:
parent
e5b7064a4d
commit
2877ece3c6
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue