Skip to content

Commit

Permalink
add SCN_MARGINRIGHTCLICK returns (#251)
Browse files Browse the repository at this point in the history
* add SCN_MARGINRIGHTCLICK returns

* update documentation to reflect MARGINRIGHTCLICK

Co-authored-by: mvincent <mvincent@mitre.org>
  • Loading branch information
vinsworldcom and mvincent committed Nov 3, 2022
1 parent ceacdcf commit 6faf9aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions PythonScript/src/ScintillaWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ void ScintillaWrapper::notify(SCNotification *notifyCode)
case SCN_MARGINCLICK:
params["margin"] = notifyCode->margin;
params["position"] = notifyCode->position;
params["modifiers"] = notifyCode->modifiers;
break;

case SCN_MARGINRIGHTCLICK:
params["margin"] = notifyCode->margin;
params["position"] = notifyCode->position;
params["modifiers"] = notifyCode->modifiers;
break;

Expand Down
6 changes: 5 additions & 1 deletion docs/source/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ SCINTILLANOTIFICATION

.. attribute:: SCINTILLANOTIFICATION.MARGINCLICK

Arguments contains: ``margin``
Arguments contains: ``modifiers``, ``position``, ``margin``

.. attribute:: SCINTILLANOTIFICATION.MARGINRIGHTCLICK

Arguments contains: ``modifiers``, ``position``, ``margin``

.. attribute:: SCINTILLANOTIFICATION.NEEDSHOWN

Expand Down

0 comments on commit 6faf9aa

Please sign in to comment.