diff options
author | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:27:19 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:27:19 +1100 |
commit | eb19cec91228fb32e961b82f1ce103ea81e587a9 (patch) | |
tree | e8beb1a2cbf0d44a56fb5f991a7651752c9730e5 /win32/ScintillaWin.cxx | |
parent | 0cf16c49d4f61d5432ad36201a161cce13482782 (diff) | |
download | scintilla-mirror-eb19cec91228fb32e961b82f1ce103ea81e587a9.tar.gz |
Bug [#1587]. WM_LBUTTONDBLCLK was no longer sent to window.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index b9eefec37..10d6639e5 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -242,7 +242,7 @@ class ScintillaWin : virtual void SetCtrlID(int identifier); virtual int GetCtrlID(); virtual void NotifyParent(SCNotification scn); - virtual void NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt); + virtual void NotifyDoubleClick(Point pt, int modifiers); virtual CaseFolder *CaseFolderForEncoding(); virtual std::string CaseMapString(const std::string &s, int caseMapping); virtual void Copy(); @@ -1422,13 +1422,13 @@ void ScintillaWin::NotifyParent(SCNotification scn) { GetCtrlID(), reinterpret_cast<LPARAM>(&scn)); } -void ScintillaWin::NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt) { +void ScintillaWin::NotifyDoubleClick(Point pt, int modifiers) { //Platform::DebugPrintf("ScintillaWin Double click 0\n"); - ScintillaBase::NotifyDoubleClick(pt, shift, ctrl, alt); + ScintillaBase::NotifyDoubleClick(pt, modifiers); // Send myself a WM_LBUTTONDBLCLK, so the container can handle it too. ::SendMessage(MainHWND(), WM_LBUTTONDBLCLK, - shift ? MK_SHIFT : 0, + (modifiers & SCI_SHIFT) ? MK_SHIFT : 0, MAKELPARAM(pt.x, pt.y)); } |