Skip to content

Commit 6faf9aa

Browse files
vinsworldcommvincent
andauthored
add SCN_MARGINRIGHTCLICK returns (bruderstein#251)
* add SCN_MARGINRIGHTCLICK returns * update documentation to reflect MARGINRIGHTCLICK Co-authored-by: mvincent <[email protected]>
1 parent ceacdcf commit 6faf9aa

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

PythonScript/src/ScintillaWrapper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ void ScintillaWrapper::notify(SCNotification *notifyCode)
172172
case SCN_MARGINCLICK:
173173
params["margin"] = notifyCode->margin;
174174
params["position"] = notifyCode->position;
175+
params["modifiers"] = notifyCode->modifiers;
176+
break;
177+
178+
case SCN_MARGINRIGHTCLICK:
179+
params["margin"] = notifyCode->margin;
180+
params["position"] = notifyCode->position;
175181
params["modifiers"] = notifyCode->modifiers;
176182
break;
177183

docs/source/enums.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ SCINTILLANOTIFICATION
9696

9797
.. attribute:: SCINTILLANOTIFICATION.MARGINCLICK
9898

99-
Arguments contains: ``margin``
99+
Arguments contains: ``modifiers``, ``position``, ``margin``
100+
101+
.. attribute:: SCINTILLANOTIFICATION.MARGINRIGHTCLICK
102+
103+
Arguments contains: ``modifiers``, ``position``, ``margin``
100104

101105
.. attribute:: SCINTILLANOTIFICATION.NEEDSHOWN
102106

0 commit comments

Comments
 (0)