diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-13 19:45:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-13 19:45:56 +0300 |
commit | bdef2d3fee025eaa58088a716f1386c0b8df622f (patch) | |
tree | 0e56b6078d403e1994142646ba283df34aa06525 /plugins/TabSRMM/src | |
parent | 22e7d00f90ca3f6c168a0b0d2000695bf7511ec0 (diff) |
tabSRMM: fix for both autocomplete & pressing tab alone
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 1262d0ad44..5e02fcba75 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1968,11 +1968,15 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam) if (isChat()) {
// tab-autocomplete
if (wParam == VK_TAB && !isCtrl && !isShift) {
+ // if tab acts as a key pressing, simply do nothing
+ if (PluginConfig.m_bAllowTab)
+ break;
+
m_message.SendMsg(WM_SETREDRAW, FALSE, 0);
bool fCompleted = TabAutoComplete();
m_message.SendMsg(WM_SETREDRAW, TRUE, 0);
RedrawWindow(m_message.GetHwnd(), nullptr, nullptr, RDW_INVALIDATE);
- if (!fCompleted && !PluginConfig.m_bAllowTab) {
+ if (!fCompleted) {
if ((GetSendButtonState(GetHwnd()) != PBS_DISABLED))
SetFocus(m_message.GetHwnd());
else
|