From 2dda3af35cf70b8ed614f88455a30090e5befc2f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 22:11:50 +0300 Subject: - fix for button codes in tabSRMM; - CSrmmBaseDialog::ProcessHotkeys to receives control keys statuses as well --- plugins/TabSRMM/src/chat_window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/chat_window.cpp') diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index efd524d576..331bd3da2e 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -607,8 +607,6 @@ LRESULT CALLBACK CChatRoomDlg::MessageSubclassProc(HWND hwnd, UINT msg, WPARAM w return 0; } - if (pDlg->ProcessHotkeys(wParam)) - return true; break; case WM_KEYDOWN: @@ -618,6 +616,9 @@ LRESULT CALLBACK CChatRoomDlg::MessageSubclassProc(HWND hwnd, UINT msg, WPARAM w if (PluginConfig.m_bSoundOnTyping && !isAlt && wParam == VK_DELETE) SkinPlaySound("SoundOnTyping"); + if (pDlg->ProcessHotkeys(wParam, isShift, isCtrl, isAlt)) + return true; + if (wParam == VK_INSERT && !isShift && !isCtrl && !isAlt) { pDlg->m_bInsertMode = !pDlg->m_bInsertMode; SendMessage(hwndParent, WM_COMMAND, MAKEWPARAM(GetDlgCtrlID(hwnd), EN_CHANGE), (LPARAM)hwnd); -- cgit v1.2.3