From fc4ce601c44f0bc0ac7529d76597e482be9b97e4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 8 Mar 2003 22:51:12 +0000 Subject: Fix to autocompletion lists where clicking on the list caused focus to shift to the list which then led to it being cancelled. --- win32/ScintillaWin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 6f0204362..b303db27a 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -667,7 +667,10 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam return DLGC_HASSETSEL | DLGC_WANTALLKEYS; case WM_KILLFOCUS: - SetFocusState(false); + if (!IsChild(reinterpret_cast(wMain.GetID()), + reinterpret_cast(wParam))) { + SetFocusState(false); + } //RealizeWindowPalette(true); break; -- cgit v1.2.3