diff options
author | nyamatongwe <unknown> | 2010-08-24 11:15:43 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-08-24 11:15:43 +1000 |
commit | 19bf183acc774beb8e548bb75316996899880a59 (patch) | |
tree | 2729e4d749d2e3c8b8a945ba5336fd1006b533c0 | |
parent | 90cb432d56ef814f9aac0ba2289b51d3c8f5a4ba (diff) | |
download | scintilla-mirror-19bf183acc774beb8e548bb75316996899880a59.tar.gz |
Mouse button down claims focus early so that container notifications can switch focus.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
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; |