From 2757c4938733e0d485647a83c2520d5d51e2ae61 Mon Sep 17 00:00:00 2001 From: Kostiantyn Moroz Date: Sun, 7 Feb 2016 18:48:24 +0000 Subject: [PATCH] Make "open in new tab" hotkey handler support mac "cmd+click" way (non-expanded mode) --- js/viewfeed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 181a932e..9bf8e935 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1755,7 +1755,7 @@ function cdmClicked(event, id) { try { //var shift_key = event.shiftKey; - if (!event.ctrlKey) { + if (!event.ctrlKey && !event.metaKey) { if (!getInitParam("cdm_expanded")) { return cdmExpandArticle(id); @@ -1824,7 +1824,7 @@ function hlClicked(event, id) { if (event.which == 2) { view(id); return true; - } else if (event.ctrlKey) { + } else if (event.ctrlKey || event.metaKey) { toggleSelected(id, true); toggleUnread(id, 0, false); openArticleInNewWindow(id); -- 2.39.5