From d2b7b1627564788bf4902cbc661c2b508ff42f09 Mon Sep 17 00:00:00 2001 From: Adeel Hassan Date: Tue, 26 Jan 2021 09:20:12 +0500 Subject: [PATCH 1/3] ignore cmd, shift, and alt keys as well --- popup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/popup.js b/popup.js index 02c254b..4354e8c 100644 --- a/popup.js +++ b/popup.js @@ -48,8 +48,9 @@ function registerHandlers(opts) { // open links in new tab - or not $('body').on('click', 'a', function(e) { let clickedUrl = $(this).attr('href'); - if (e.ctrlKey) { - /* ctrl + click: do not modify default browser behavior */ + if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) { + /* ctrl/cmd/shift/alt + click: + do not modify default browser behavior */ } else if (opts.newtab) { chrome.tabs.create({ From ff62c6bd62e04eba198f6f27f0f3da4e71a6f156 Mon Sep 17 00:00:00 2001 From: Adeel Hassan Date: Tue, 26 Jan 2021 09:20:25 +0500 Subject: [PATCH 2/3] update version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ddc46ff..c0d5c0c 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "Find on Reddit", "description": "Find discussions of the current URL on Reddit", - "version": "1.5.1", + "version": "1.5.2", "browser_action": { "default_icon": "icon-256.png", From 61b84e246ba1e1d57e8d5542c68064cc267dbb50 Mon Sep 17 00:00:00 2001 From: Adeel Hassan Date: Tue, 26 Jan 2021 09:20:37 +0500 Subject: [PATCH 3/3] update changelog --- changelog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 1922d3c..af2b377 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,7 @@ # Changelog -## v1.5.1: -- Fix bug in ctrl+click behavior. +## v1.5.2: +- Fix bug in ctrl/cmd/shift/alt+click behavior. - Minor improvements to the options page. ## v1.5.0: