Skip to content

Commit 4c9add4

Browse files
committed
ensured cmd+click is properly handled for MacOS
1 parent c371541 commit 4c9add4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/assets/javascripts/comments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $(() => {
4242
}
4343

4444
$(document).on('click', '.post--comments-thread.is-inline a', async (ev) => {
45-
if (ev.ctrlKey) {
45+
if (ev.ctrlKey || ev.metaKey) {
4646
return;
4747
}
4848

@@ -56,7 +56,7 @@ $(() => {
5656
});
5757

5858
$(document).on('click', '.js-show-deleted-comments', (ev) => {
59-
if (ev.ctrlKey) {
59+
if (ev.ctrlKey || ev.metaKey) {
6060
return;
6161
}
6262

app/assets/javascripts/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $(() => {
124124
});
125125

126126
$(document).on('click', '.notification-link', async (ev) => {
127-
if (ev.ctrlKey) {
127+
if (ev.ctrlKey || ev.metaKey) {
128128
return;
129129
}
130130

0 commit comments

Comments
 (0)