aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-01-24 23:09:28 +0000
committernyamatongwe <devnull@localhost>2007-01-24 23:09:28 +0000
commit65489b1e3980eafd8e197fe4fa696119914ac8c1 (patch)
tree7a6047913865d7a93ab2f59dedea5f6c981cbc89 /src
parent50a833ad1aa620a0d24b1ca1a511a2db87e78eae (diff)
downloadscintilla-mirror-65489b1e3980eafd8e197fe4fa696119914ac8c1.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')
-rw-r--r--src/Editor.cxx6
-rw-r--r--src/Editor.h2
2 files changed, 5 insertions, 3 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);
}
diff --git a/src/Editor.h b/src/Editor.h
index e1065bf04..3399b70c7 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -436,7 +436,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void NotifyMove(int position);
void NotifySavePoint(bool isSavePoint);
void NotifyModifyAttempt();
- virtual void NotifyDoubleClick(Point pt, bool shift);
+ virtual void NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt);
void NotifyHotSpotClicked(int position, bool shift, bool ctrl, bool alt);
void NotifyHotSpotDoubleClicked(int position, bool shift, bool ctrl, bool alt);
void NotifyUpdateUI();