From c71d9d80faa0bf5beb9ea9fdb940396862463c02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Nov 2020 16:12:15 +0300 Subject: fixes #2610 (Message plugins: add abitity to Ctrl+V file) --- src/core/stdmsg/src/msgdialog.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 354c740b45..400a87a368 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -1072,6 +1072,7 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) return 0; } + case EM_PASTESPECIAL: case WM_PASTE: if (IsClipboardFormatAvailable(CF_HDROP)) { if (OpenClipboard(m_message.GetHwnd())) { @@ -1154,11 +1155,6 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) return TRUE; } - if ((wParam == 45 && isShift || wParam == 0x56 && isCtrl) && !isAlt) { // ctrl-v (paste clean text) - m_message.SendMsg(EM_PASTESPECIAL, CF_UNICODETEXT, 0); - return TRUE; - } - if (wParam == VK_TAB && isShift && !isCtrl) { // SHIFT-TAB (go to nick list) SetFocus(m_nickList.GetHwnd()); return TRUE; @@ -1183,11 +1179,6 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) } } - if (wParam == VK_INSERT && isShift || wParam == 'V' && isCtrl) { // ctrl-v (paste clean text) - m_message.SendMsg(WM_PASTE, 0, 0); - return 0; - } - if (isCtrl && g_dat.bCtrlSupport && m_cmdList.getCount()) { if (wParam == VK_UP && m_cmdListInd != 0) { if (m_cmdListInd < 0) -- cgit v1.2.3