diff options
author | nyamatongwe <devnull@localhost> | 2010-08-24 11:15:43 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-08-24 11:15:43 +1000 |
commit | bc7c83a7e3ba98347c17d2d3b533aa19b7c59d62 (patch) | |
tree | 97428472ef792b43df019fac47cfc928f307c062 /win32/ScintillaWin.cxx | |
parent | 3f47056446652515e38c29896ab16a77074f9d84 (diff) | |
download | scintilla-mirror-bc7c83a7e3ba98347c17d2d3b533aa19b7c59d62.tar.gz |
Mouse button down claims focus early so that container notifications can switch focus.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-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; |