From b9e9f7760aa47c8ac230ffcfaba04a196897a712 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 21:50:52 +0300 Subject: oops... removed too much code --- plugins/TabSRMM/src/chat_window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index 38603f90b9..efd524d576 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -600,6 +600,13 @@ LRESULT CALLBACK CChatRoomDlg::MessageSubclassProc(HWND hwnd, UINT msg, WPARAM w if (PluginConfig.m_bSoundOnTyping && !isAlt && !isCtrl && !(pDlg->m_pContainer->dwFlags & CNT_NOSOUND) && wParam != VK_ESCAPE && !(wParam == VK_TAB && PluginConfig.m_bAllowTab)) SkinPlaySound("SoundOnTyping"); + if (isCtrl && !isAlt && !isShift) + switch(wParam) { + case 0x17: + PostMessage(hwndParent, WM_CLOSE, 0, 1); + return 0; + } + if (pDlg->ProcessHotkeys(wParam)) return true; break; -- cgit v1.2.3