From b853debf1f65fad3a6a3e0edebeec0ccf73fa5ae 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(-) (limited to 'win32') 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