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 {
//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);