aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
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 /p/scripts
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
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js4
1 files changed, 2 insertions, 2 deletions
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');