From 2cd55d1baef30375a76c823f134d4725800a8b70 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Apr 2013 22:29:02 +0000 Subject: also Ctrl+Ins processing enabled git-svn-id: http://svn.miranda-ng.org/main/trunk@4310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdialog.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'plugins/TabSRMM/src/msgdialog.cpp') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index fa79e6367a..5778442b2b 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -564,20 +564,10 @@ static LRESULT CALLBACK MessageLogSubclassProc(HWND hwnd, UINT msg, WPARAM wPara break; case WM_KEYDOWN: - if (!isCtrl && !isAlt&&!isShift) { - if (wParam != VK_PRIOR && wParam != VK_NEXT && wParam != VK_DELETE && wParam != VK_MENU && - wParam != VK_END && wParam != VK_HOME && wParam != VK_UP && wParam != VK_DOWN && - wParam != VK_LEFT&&wParam != VK_RIGHT && wParam != VK_SPACE) - { - // TODO causes issues when pressing keys in the log - //SetFocus(GetDlgItem(mwdat->hwnd,IDC_MESSAGE)); - //keybd_event((BYTE)wParam, (BYTE)MapVirtualKey(wParam,0), KEYEVENTF_EXTENDEDKEY | 0, 0); - - //return 0; - } - } + if (wParam == VK_INSERT && isCtrl) + return DM_WMCopyHandler(hwnd, MessageLogSubclassProc, msg, wParam, lParam); break; - //MAD_ + case WM_COPY: return DM_WMCopyHandler(hwnd, MessageLogSubclassProc, msg, wParam, lParam); -- cgit v1.2.3