diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-15 15:13:15 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-15 15:13:15 +1000 |
commit | 2b08c6ee48f984b99165a156690dfcf4c67fea21 (patch) | |
tree | 87a806590e7d7e4a4aee9ebdaa97ab41fa022dc1 /win32/ScintillaWin.cxx | |
parent | a499680e07e1eeb55d23bbf1f61dde535d5beb78 (diff) | |
download | scintilla-mirror-2b08c6ee48f984b99165a156690dfcf4c67fea21.tar.gz |
Feature: [feature-requests:#1007]. Option to allow mouse selection to
switch to rectangular by pressing Alt after start of gesture.
From Neomi.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 216334b17..c3222435e 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -897,7 +897,10 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case WM_MOUSEMOVE: SetTrackMouseLeaveEvent(true); - ButtonMove(Point::FromLong(lParam)); + ButtonMoveWithModifiers(Point::FromLong(lParam), + ((wParam & MK_SHIFT) != 0 ? SCI_SHIFT : 0) | + ((wParam & MK_CONTROL) != 0 ? SCI_CTRL : 0) | + (Platform::IsKeyDown(VK_MENU) ? SCI_ALT : 0)); break; case WM_MOUSELEAVE: |