diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-07 11:27:01 -0700 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-07 11:27:01 -0700 |
commit | 5cea24f8c00154d5da1775cbabe91f3b420771c3 (patch) | |
tree | 9cb9fcc42f2ffa4d132253e8e8cc2a4e3821ef47 /src | |
parent | 21eade33dcc41d373d92aa174a9b584e7e3ed449 (diff) |
SRMM: disable annoying ding for pressing BS in an empty memo field
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 720bc58f27..730809af5f 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -182,9 +182,14 @@ LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) return 1; break; } + break; case WM_SYSKEYDOWN: case WM_KEYDOWN: + if (wParam == VK_BACK) + if (m_message.GetRichTextLength() == 0) + return 1; + MSG tmp = { m_hwnd, msg, wParam, lParam }; if (Hotkey_Check(&tmp, g_pszHotkeySection) == 100) { if (!(GetWindowLongPtr(m_message.GetHwnd(), GWL_STYLE) & ES_READONLY)) { |