diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 6 | ||||
| -rw-r--r-- | src/Editor.h | 2 | 
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();  | 
