aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Lynch <kemayo@gmail.com> 2023-06-24 13:25:55 -0500
committerGravatar GitHub <noreply@github.com> 2023-06-24 20:25:55 +0200
commit69994078d7974f5e44d81abc0b4eb83bf52ab9f5 (patch)
treec3738c6c6fce023ffbe47c85701bd1c84388c195
parentfca8ae42073e11452d74a5e4a0ed4bfdfb88afa0 (diff)
Fix macOS feed title meta-click behavior (#5492)
* Fix command-click on feed titles in macOS browsers In macOS command-click is used for open-in-new-tab, not ctrl-click. * Update CREDITS.md
-rw-r--r--CREDITS.md1
-rw-r--r--p/scripts/main.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/CREDITS.md b/CREDITS.md
index 42490cf5d..21dc96728 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -50,6 +50,7 @@ People are sorted by name so please keep this order.
* [Damstre](https://github.com/Damstre): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Damstre)
* [danc](https://github.com/danc): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:danc), [Web](http://tintouli.free.fr/)
* [Daniel Lo Nigro](https://github.com/Daniel15): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Daniel15), [Web](https://d.sb/)
+* [David Lynch](https://github.com/kemayo): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:kemayo), [Web](http://davidlynch.org/)
* [David Souza](https://github.com/araujo0205): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:araujo0205), [Web](http://davidsouza.tech/)
* [Dennis Cheng](https://github.com/den13501): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:den13501)
* [Django Janny](https://github.com/keltroth): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:keltroth)
diff --git a/p/scripts/main.js b/p/scripts/main.js
index beabbc6d9..3704be7ab 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1059,8 +1059,8 @@ function init_stream(stream) {
}
el = ev.target.closest('.item.title > a');
- if (el) { // Allow default control-click behaviour such as open in background-tab
- return ev.ctrlKey;
+ if (el) { // Allow default control/command-click behaviour such as open in background-tab
+ return ev.ctrlKey || ev.metaKey;
}
el = ev.target.closest('.flux .content .text a');