summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-15 19:06:32 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-15 19:06:32 +0300
commita32ddff6fd36f95eeee290b7afd0113fc4882748 (patch)
tree50ecd40e7aef3b902bf425bba597b9fc75c30720 /plugins/NewStory
parent7bc82359efba8a0fde2bcfe1b80fb7c19b60827a (diff)
fixes #3657 (NewStory: снятие выделения)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 89003680bb..0909b186cc 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -1013,7 +1013,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
case WM_KILLFOCUS:
if (wParam && (HWND)wParam != data->hwndEditBox)
data->EndEditItem(false);
- if (data->pMsgDlg && (HWND)wParam == data->pMsgDlg->GetInput())
+ if (data->pMsgDlg && ((HWND)wParam == data->pMsgDlg->GetInput() || (HWND)wParam == data->pMsgDlg->GetHwnd()))
data->ClearSelection(0, -1);
return 0;