aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-03-08 22:51:12 +0000
committernyamatongwe <devnull@localhost>2003-03-08 22:51:12 +0000
commitb853debf1f65fad3a6a3e0edebeec0ccf73fa5ae (patch)
tree2ecc11a5c197a388a704ec95246d28d020045cd6
parente7af67b8e72bee50b84337d6ee71062e08e1abda (diff)
downloadscintilla-mirror-b853debf1f65fad3a6a3e0edebeec0ccf73fa5ae.tar.gz
Fix to autocompletion lists where clicking on the list caused focus to
shift to the list which then led to it being cancelled.
-rw-r--r--win32/ScintillaWin.cxx5
1 files changed, 4 insertions, 1 deletions
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<HWND>(wMain.GetID()),
+ reinterpret_cast<HWND>(wParam))) {
+ SetFocusState(false);
+ }
//RealizeWindowPalette(true);
break;