summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actualités.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/actualités.html b/actualités.html
index bc033fe..c0999c7 100644
--- a/actualités.html
+++ b/actualités.html
@@ -234,7 +234,10 @@
document.querySelector(anchor).classList.add('active');
document.querySelectorAll('.event a').forEach((link) => {
- link.addEventListener('click', function() {
+ link.addEventListener('click', function(click) {
+ if (click.ctrlKey || click.shiftKey)
+ return;
+
var prev = document.querySelector('.details.active');
if (prev)
prev.classList.remove('active');