summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-03 15:53:46 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-03 15:53:46 +0200
commit450fe7eaf328788ad3c3b46d5536e8e1f1dfc50a (patch)
tree57aecc273300b43dec034ae73521334f77f7e7c1
parente7f697a2e11d4cf4b6c7219eaf7e9b61e2598fa8 (diff)
parent3b5adaca9447632023fb5b5bd0a8e98427f290a4 (diff)
Merge branch 'dev' of github.com:skyjake/lagrange into dev
-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 }