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/chat/window.cpp | 2 ++ plugins/TabSRMM/src/msgdialog.cpp | 16 +++------------- 2 files changed, 5 insertions(+), 13 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 21f41021fe..a18b760cc8 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -1346,6 +1346,8 @@ static LRESULT CALLBACK LogSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR PostMessage(hwndParent, WM_CLOSE, 0, 1); return TRUE; } + if (wParam == VK_INSERT && GetKeyState(VK_CONTROL) & 0x8000) + return DM_WMCopyHandler(hwnd, LogSubclassProc, msg, wParam, lParam); break; case WM_SYSKEYUP: 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