From 2877ece3c67a43ac9d47135ad55a8685bd39d860 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sun, 18 Nov 2018 21:33:05 +0200 Subject: [PATCH] Changed: Add right click copy-to-clipboard action to chat --HG-- branch : develop --- code/ryzom/client/src/interface_v3/chat_text_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp index a9a682bf1..ae76eefcb 100644 --- a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp +++ b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp @@ -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);