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:
parent
b04e260fb7
commit
1c3a7b6ce7
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user