summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-04 22:29:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-04 22:29:02 +0000
commit2cd55d1baef30375a76c823f134d4725800a8b70 (patch)
treedd9a103dee243c01d23813948a53e2726bcb107c /plugins/TabSRMM
parente891234bf07b07a309c4cfddb6f20f62ec82648f (diff)
also Ctrl+Ins processing enabled
git-svn-id: http://svn.miranda-ng.org/main/trunk@4310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp2
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp16
2 files changed, 5 insertions, 13 deletions
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);