diff options
-rw-r--r-- | res/about/version.gmi | 3 | ||||
-rw-r--r-- | src/ui/documentwidget.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi index ead4d5d2..4fb8eb37 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi | |||
@@ -6,6 +6,9 @@ | |||
6 | ``` | 6 | ``` |
7 | # Release notes | 7 | # Release notes |
8 | 8 | ||
9 | ## 0.8 | ||
10 | * ${CTRL+}Click opens tab in background, ${SHIFT+}${CTRL+}Click opens as foreground tab. | ||
11 | |||
9 | ## 0.7.1 | 12 | ## 0.7.1 |
10 | * Fixed build on OpenBSD. | 13 | * Fixed build on OpenBSD. |
11 | * Fixed build with LibreSSL. | 14 | * Fixed build with LibreSSL. |
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 | } |