Make "open in new tab" hotkey handler support mac "cmd+click" way (non-expanded mode)

This commit is contained in:
Kostiantyn Moroz 2016-02-07 18:48:24 +00:00
parent 50bda3fefb
commit 2757c49387
1 changed files with 2 additions and 2 deletions

View File

@ -1755,7 +1755,7 @@ function cdmClicked(event, id) {
try { try {
//var shift_key = event.shiftKey; //var shift_key = event.shiftKey;
if (!event.ctrlKey) { if (!event.ctrlKey && !event.metaKey) {
if (!getInitParam("cdm_expanded")) { if (!getInitParam("cdm_expanded")) {
return cdmExpandArticle(id); return cdmExpandArticle(id);
@ -1824,7 +1824,7 @@ function hlClicked(event, id) {
if (event.which == 2) { if (event.which == 2) {
view(id); view(id);
return true; return true;
} else if (event.ctrlKey) { } else if (event.ctrlKey || event.metaKey) {
toggleSelected(id, true); toggleSelected(id, true);
toggleUnread(id, 0, false); toggleUnread(id, 0, false);
openArticleInNewWindow(id); openArticleInNewWindow(id);