summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 146b0de7..fbfb94f3 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2444,7 +2444,8 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2444 return iTrue; 2444 return iTrue;
2445 } 2445 }
2446 if (ev->button.button == SDL_BUTTON_MIDDLE && d->hoverLink) { 2446 if (ev->button.button == SDL_BUTTON_MIDDLE && d->hoverLink) {
2447 postCommandf_App("open newtab:1 url:%s", 2447 postCommandf_App("open newtab:%d url:%s",
2448 SDL_GetModState() & KMOD_SHIFT ? 1 : 2,
2448 cstr_String(linkUrl_GmDocument(d->doc, d->hoverLink->linkId))); 2449 cstr_String(linkUrl_GmDocument(d->doc, d->hoverLink->linkId)));
2449 return iTrue; 2450 return iTrue;
2450 } 2451 }