summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 604192c5..e87b1413 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1797,9 +1797,13 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
1797 const iGmRun *run = i.ptr; 1797 const iGmRun *run = i.ptr;
1798 if (run->flags & decoration_GmRunFlag && 1798 if (run->flags & decoration_GmRunFlag &&
1799 visibleLinkOrdinal_DocumentWidget_(d, run->linkId) == ord) { 1799 visibleLinkOrdinal_DocumentWidget_(d, run->linkId) == ord) {
1800 const int kmods = keyMods_Sym(SDL_GetModState());
1800 postCommandf_App("open newtab:%d url:%s", 1801 postCommandf_App("open newtab:%d url:%s",
1801 (SDL_GetModState() & KMOD_PRIMARY) != 0, 1802 ((kmods & KMOD_PRIMARY) && (kmods & KMOD_SHIFT)) ? 1
1802 cstr_String(linkUrl_GmDocument(d->doc, run->linkId))); 1803 : (kmods & KMOD_PRIMARY) ? 2
1804 : 0,
1805 cstr_String(absoluteUrl_String(
1806 d->mod.url, linkUrl_GmDocument(d->doc, run->linkId))));
1803 return iTrue; 1807 return iTrue;
1804 } 1808 }
1805 } 1809 }