1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-08 02:34:06 +02:00

Implement holding Ctrl to open clicked links in browser

This commit is contained in:
chylex 2016-04-25 18:07:54 +02:00
parent b04e260fb7
commit 1c3a7b6ce7

View File

@ -181,6 +181,16 @@
};
})();
TD.util.maybeOpenClickExternally = prependToFunction(TD.util.maybeOpenClickExternally,function(e){
if (e.ctrlKey){
$TD.openBrowser(e.currentTarget.getAttribute("href"));
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
return true;
}
});
//
// Block: Expand shortened links on hover.
//