aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-08-24 11:15:43 +1000
committernyamatongwe <devnull@localhost>2010-08-24 11:15:43 +1000
commitbc7c83a7e3ba98347c17d2d3b533aa19b7c59d62 (patch)
tree97428472ef792b43df019fac47cfc928f307c062
parent3f47056446652515e38c29896ab16a77074f9d84 (diff)
downloadscintilla-mirror-bc7c83a7e3ba98347c17d2d3b533aa19b7c59d62.tar.gz
Mouse button down claims focus early so that container notifications can switch focus.
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 9873b82a4..c6b9d38b3 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -741,11 +741,11 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
// Platform::IsKeyDown(VK_SHIFT),
// Platform::IsKeyDown(VK_CONTROL),
// Platform::IsKeyDown(VK_MENU));
+ ::SetFocus(MainHWND());
ButtonDown(Point::FromLong(lParam), ::GetMessageTime(),
(wParam & MK_SHIFT) != 0,
(wParam & MK_CONTROL) != 0,
Platform::IsKeyDown(VK_MENU));
- ::SetFocus(MainHWND());
}
break;