]> git.wh0rd.org Git - tt-rss.git/commitdiff
Make "open in new tab" hotkey handler support mac "cmd+click" way (non-expanded mode)
authorKostiantyn Moroz <Kostyantyn.Moroz@adstream.com>
Sun, 7 Feb 2016 18:48:24 +0000 (18:48 +0000)
committerKostiantyn Moroz <Kostyantyn.Moroz@adstream.com>
Sun, 7 Feb 2016 18:48:24 +0000 (18:48 +0000)
js/viewfeed.js

index 181a932e0ac64c06d83156235f965af483fe4f85..9bf8e93557468555e0633545bd355dd0274d61ea 100755 (executable)
@@ -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);