From bc7c83a7e3ba98347c17d2d3b533aa19b7c59d62 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Aug 2010 11:15:43 +1000 Subject: Mouse button down claims focus early so that container notifications can switch focus. --- win32/ScintillaWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') 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; -- cgit v1.2.3