summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);