mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+enh: cooperation of Alt+LClick on Hyperlinks vs. extend selection
This commit is contained in:
parent
c811486ffd
commit
635efdb2dc
@ -8794,7 +8794,7 @@ static LRESULT _MsgNotifyFromEdit(HWND hwnd, const SCNotification* const scn)
|
||||
|
||||
case SCN_INDICATORRELEASE: {
|
||||
if (SciCall_IndicatorValueAt(INDIC_NP3_HYPERLINK, scn->position) > 0) {
|
||||
if (_s_indic_click_modifiers & SCMOD_ALT ) {
|
||||
if ((_s_indic_click_modifiers & SCMOD_ALT) && SciCall_IsSelectionEmpty()) {
|
||||
if (_s_indic_click_modifiers & SCMOD_CTRL) {
|
||||
HandleHotSpotURLClicked(scn->position, OPEN_NEW_NOTEPAD3);
|
||||
} else {
|
||||
|
||||
@ -300,6 +300,7 @@ DeclareSciCallR1(GetSelectionNStart, GETSELECTIONNSTART, DocPos, DocPosU, selnum
|
||||
DeclareSciCallR1(GetSelectionNEnd, GETSELECTIONNEND, DocPos, DocPosU, selnum);
|
||||
DeclareSciCallR1(GetSelectionNStartVirtualSpace, GETSELECTIONNSTARTVIRTUALSPACE, DocPos, DocPosU, selnum);
|
||||
DeclareSciCallR1(GetSelectionNEndVirtualSpace, GETSELECTIONNENDVIRTUALSPACE, DocPos, DocPosU, selnum);
|
||||
DeclareSciCallR0(GetMoveExtendsSelection, GETMOVEEXTENDSSELECTION, bool);
|
||||
|
||||
DeclareSciCallV0(SwapMainAnchorCaret, SWAPMAINANCHORCARET);
|
||||
DeclareSciCallV0(MultipleSelectAddEach, MULTIPLESELECTADDEACH);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user