diff options
author | nyamatongwe <unknown> | 2007-01-24 23:09:28 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-01-24 23:09:28 +0000 |
commit | 31e9679fd022236ad54303ce6a92573455e1eee8 (patch) | |
tree | 7a6047913865d7a93ab2f59dedea5f6c981cbc89 /src/Editor.cxx | |
parent | fea85b2567041c72df20ba3c80f30e717c050395 (diff) | |
download | scintilla-mirror-31e9679fd022236ad54303ce6a92573455e1eee8.tar.gz |
Set the modifiers field on the SCN_DOUBLECLICK notification so the SCI_SHIFT, SCI_CTRL,
and SCI_ALT bits may be set.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 14906f523..b50984b92 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3631,11 +3631,13 @@ void Editor::NotifyModifyAttempt() { NotifyParent(scn); } -void Editor::NotifyDoubleClick(Point pt, bool) { +void Editor::NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt) { SCNotification scn = {0}; scn.nmhdr.code = SCN_DOUBLECLICK; scn.line = LineFromLocation(pt); scn.position = PositionFromLocationClose(pt); + scn.modifiers = (shift ? SCI_SHIFT : 0) | (ctrl ? SCI_CTRL : 0) | + (alt ? SCI_ALT : 0); NotifyParent(scn); } @@ -5151,7 +5153,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b } //Platform::DebugPrintf("Double click: %d - %d\n", anchor, currentPos); if (doubleClick) { - NotifyDoubleClick(pt, shift); + NotifyDoubleClick(pt, shift, ctrl, alt); if (PositionIsHotspot(newPos)) NotifyHotSpotDoubleClicked(newPos, shift, ctrl, alt); } |