diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 11568c70..5e30cc2a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2051,8 +2051,11 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2051 | refresh_Widget(w); | 2051 | refresh_Widget(w); |
2052 | } | 2052 | } |
2053 | else { | 2053 | else { |
2054 | const int kmods = keyMods_Sym(SDL_GetModState()); | ||
2054 | postCommandf_App("open newtab:%d url:%s", | 2055 | postCommandf_App("open newtab:%d url:%s", |
2055 | (SDL_GetModState() & KMOD_PRIMARY) != 0, | 2056 | ((kmods & KMOD_PRIMARY) && (kmods & KMOD_SHIFT)) ? 1 |
2057 | : (kmods & KMOD_PRIMARY) ? 2 | ||
2058 | : 0, | ||
2056 | cstr_String(absoluteUrl_String( | 2059 | cstr_String(absoluteUrl_String( |
2057 | d->mod.url, linkUrl_GmDocument(d->doc, linkId)))); | 2060 | d->mod.url, linkUrl_GmDocument(d->doc, linkId)))); |
2058 | } | 2061 | } |